AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(crypto): ui improvement (#16440)
Talal Jaber11eba94be356
diff --git a/bun.lock b/bun.lockindex 64ece9b87be..16152ca6b25 100644--- a/bun.lock+++ b/bun.lock@@ -10486,7 +10486,7 @@},"packages/pieces/core/crypto": {"name": "@activepieces/piece-crypto",- "version": "0.0.29",+ "version": "0.1.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/core/crypto/package.json b/packages/pieces/core/crypto/package.jsonindex 49e63ac2a7d..43f10a56e07 100644--- a/packages/pieces/core/crypto/package.json+++ b/packages/pieces/core/crypto/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-crypto",- "version": "0.0.29",+ "version": "0.1.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","dependencies": {diff --git a/packages/pieces/core/crypto/src/i18n/de.json b/packages/pieces/core/crypto/src/i18n/de.jsonindex e843dc09c6e..09bf2ed61f8 100644--- a/packages/pieces/core/crypto/src/i18n/de.json+++ b/packages/pieces/core/crypto/src/i18n/de.json@@ -49,5 +49,29 @@"SHA384": "SHA384","The text to be signed": "The text to be signed","Output Encoding": "Output Encoding",- "The encoding of the output signature": "The encoding of the output signature"+ "The encoding of the output signature": "The encoding of the output signature",+ "Hash, sign and encode text, encrypt files and generate passwords": "Text hashen, signieren und kodieren, Dateien verschlüsseln und Passwörter generieren",+ "Signs text with a shared secret key using HMAC.": "Signiert Text per HMAC mit einem gemeinsamen geheimen Schlüssel.",+ "Signs text with an RSA private key.": "Signiert Text mit einem privaten RSA-Schlüssel.",+ "Encrypts a file with the recipient's OpenPGP public key.": "Verschlüsselt eine Datei mit dem öffentlichen OpenPGP-Schlüssel des Empfängers.",+ "Algorithm": "Algorithmus",+ "Secret Key": "Geheimer Schlüssel",+ "Secret Key Encoding": "Kodierung des geheimen Schlüssels",+ "Length": "Länge",+ "SHA256 suits most uses. MD5 is fast but not secure.": "SHA256 passt für die meisten Fälle. MD5 ist schnell, aber nicht sicher.",+ "The text to hash. The same text always gives the same hash.": "Der zu hashende Text. Gleicher Text ergibt immer denselben Hash.",+ "The secret shared with the service that checks the signature.": "Das Geheimnis, das Sie mit dem Dienst teilen, der die Signatur prüft.",+ "Use UTF-8 for a plain text key. A wrong choice breaks the signature.": "UTF-8 für einen Schlüssel als Klartext. Eine falsche Wahl macht die Signatur ungültig.",+ "Use the algorithm the receiving service expects.": "Verwenden Sie den Algorithmus, den der empfangende Dienst erwartet.",+ "The exact text to sign, such as a request body.": "Der genaue zu signierende Text, z. B. ein Request-Body.",+ "How the signature is written. Hex if left empty.": "Format der Signatur. Hex, wenn leer.",+ "Only needed if the private key is encrypted.": "Nur nötig, wenn der private Schlüssel verschlüsselt ist.",+ "How the signature is written. Base64 if left empty.": "Format der Signatur. Base64, wenn leer.",+ "Number of characters, up to 256.": "Anzahl der Zeichen, höchstens 256.",+ "Add symbols if the site accepts them.": "Fügen Sie Sonderzeichen hinzu, wenn die Website sie akzeptiert.",+ "The base64 text to turn back into plain text.": "Der Base64-Text, der wieder in Klartext umgewandelt wird.",+ "The plain text to turn into base64.": "Der Klartext, der in Base64 umgewandelt wird.",+ "Only the owner of the matching private key can open it.": "Nur der Besitzer des passenden privaten Schlüssels kann sie öffnen.",+ "The recipient's public key in ASCII armor format.": "Der öffentliche Schlüssel des Empfängers im ASCII-Armor-Format.",+ "With Symbols": "Mit Sonderzeichen"}\ No newline at end of filediff --git a/packages/pieces/core/crypto/src/i18n/es.json b/packages/pieces/core/crypto/src/i18n/es.jsonindex b5652942cab..1d9f867f445 100644--- a/packages/pieces/core/crypto/src/i18n/es.json+++ b/packages/pieces/core/crypto/src/i18n/es.json@@ -49,5 +49,29 @@"SHA384": "SHA384","The text to be signed": "The text to be signed","Output Encoding": "Output Encoding",- "The encoding of the output signature": "The encoding of the output signature"+ "The encoding of the output signature": "The encoding of the output signature",+ "Hash, sign and encode text, encrypt files and generate passwords": "Aplica hash, firma y codifica texto, cifra archivos y genera contraseñas",+ "Signs text with a shared secret key using HMAC.": "Firma texto con una clave secreta compartida usando HMAC.",+ "Signs text with an RSA private key.": "Firma texto con una clave privada RSA.",+ "Encrypts a file with the recipient's OpenPGP public key.": "Cifra un archivo con la clave pública OpenPGP del destinatario.",+ "Algorithm": "Algoritmo",+ "Secret Key": "Clave secreta",+ "Secret Key Encoding": "Codificación de la clave secreta",+ "Length": "Longitud",+ "SHA256 suits most uses. MD5 is fast but not secure.": "SHA256 sirve para la mayoría de los casos. MD5 es rápido pero no es seguro.",+ "The text to hash. The same text always gives the same hash.": "El texto para el hash. El mismo texto siempre da el mismo hash.",+ "The secret shared with the service that checks the signature.": "El secreto compartido con el servicio que verifica la firma.",+ "Use UTF-8 for a plain text key. A wrong choice breaks the signature.": "Usa UTF-8 para una clave en texto plano. Una elección incorrecta invalida la firma.",+ "Use the algorithm the receiving service expects.": "Usa el algoritmo que espera el servicio receptor.",+ "The exact text to sign, such as a request body.": "El texto exacto que se firma, como el cuerpo de una solicitud.",+ "How the signature is written. Hex if left empty.": "Cómo se escribe la firma. Hex si se deja vacío.",+ "Only needed if the private key is encrypted.": "Solo es necesaria si la clave privada está cifrada.",+ "How the signature is written. Base64 if left empty.": "Cómo se escribe la firma. Base64 si se deja vacío.",+ "Number of characters, up to 256.": "Número de caracteres, hasta 256.",+ "Add symbols if the site accepts them.": "Añade símbolos si el sitio los acepta.",+ "The base64 text to turn back into plain text.": "El texto base64 que se convierte de nuevo en texto plano.",+ "The plain text to turn into base64.": "El texto plano que se convierte a base64.",+ "Only the owner of the matching private key can open it.": "Solo el dueño de la clave privada correspondiente puede abrirlo.",+ "The recipient's public key in ASCII armor format.": "La clave pública del destinatario en formato ASCII armor.",+ "With Symbols": "Con símbolos"}\ No newline at end of filediff --git a/packages/pieces/core/crypto/src/i18n/fr.json b/packages/pieces/core/crypto/src/i18n/fr.jsonindex 833baf8beb0..144558f3ff1 100644--- a/packages/pieces/core/crypto/src/i18n/fr.json+++ b/packages/pieces/core/crypto/src/i18n/fr.json@@ -49,5 +49,29 @@"SHA384": "SHA384","The text to be signed": "The text to be signed","Output Encoding": "Output Encoding",- "The encoding of the output signature": "The encoding of the output signature"+ "The encoding of the output signature": "The encoding of the output signature",+ "Hash, sign and encode text, encrypt files and generate passwords": "Hacher, signer et encoder du texte, chiffrer des fichiers et générer des mots de passe",+ "Signs text with a shared secret key using HMAC.": "Signe du texte avec une clé secrète partagée via HMAC.",+ "Signs text with an RSA private key.": "Signe du texte avec une clé privée RSA.",+ "Encrypts a file with the recipient's OpenPGP public key.": "Chiffre un fichier avec la clé publique OpenPGP du destinataire.",+ "Algorithm": "Algorithme",+ "Secret Key": "Clé secrète",+ "Secret Key Encoding": "Encodage de la clé secrète",+ "Length": "Longueur",+ "SHA256 suits most uses. MD5 is fast but not secure.": "SHA256 convient à la plupart des usages. MD5 est rapide mais pas sûr.",+ "The text to hash. The same text always gives the same hash.": "Le texte à hacher. Un même texte donne toujours le même hash.",+ "The secret shared with the service that checks the signature.": "Le secret partagé avec le service qui vérifie la signature.",+ "Use UTF-8 for a plain text key. A wrong choice breaks the signature.": "UTF-8 pour une clé en texte brut. Un mauvais choix invalide la signature.",+ "Use the algorithm the receiving service expects.": "Utilisez l'algorithme attendu par le service destinataire.",+ "The exact text to sign, such as a request body.": "Le texte exact à signer, par exemple le corps d'une requête.",+ "How the signature is written. Hex if left empty.": "Format de la signature. Hex si vide.",+ "Only needed if the private key is encrypted.": "Nécessaire seulement si la clé privée est chiffrée.",+ "How the signature is written. Base64 if left empty.": "Format de la signature. Base64 si vide.",+ "Number of characters, up to 256.": "Nombre de caractères, jusqu'à 256.",+ "Add symbols if the site accepts them.": "Ajoutez des symboles si le site les accepte.",+ "The base64 text to turn back into plain text.": "Le texte base64 à reconvertir en texte brut.",+ "The plain text to turn into base64.": "Le texte brut à convertir en base64.",+ "Only the owner of the matching private key can open it.": "Seul le détenteur de la clé privée correspondante peut l'ouvrir.",+ "The recipient's public key in ASCII armor format.": "La clé publique du destinataire au format ASCII armor.",+ "With Symbols": "Avec symboles"}\ No newline at end of filediff --git a/packages/pieces/core/crypto/src/i18n/ja.json b/packages/pieces/core/crypto/src/i18n/ja.jsonindex 75d5ce28391..b14e3c66b5d 100644--- a/packages/pieces/core/crypto/src/i18n/ja.json+++ b/packages/pieces/core/crypto/src/i18n/ja.json@@ -49,5 +49,29 @@"SHA384": "SHA384","The text to be signed": "The text to be signed","Output Encoding": "Output Encoding",- "The encoding of the output signature": "The encoding of the output signature"+ "The encoding of the output signature": "The encoding of the output signature",+ "Hash, sign and encode text, encrypt files and generate passwords": "テキストのハッシュ化・署名・エンコード、ファイルの暗号化、パスワードの生成",+ "Signs text with a shared secret key using HMAC.": "共有シークレットキーを使い、HMAC でテキストに署名します。",+ "Signs text with an RSA private key.": "RSA 秘密鍵でテキストに署名します。",+ "Encrypts a file with the recipient's OpenPGP public key.": "受信者の OpenPGP 公開鍵でファイルを暗号化します。",+ "Algorithm": "アルゴリズム",+ "Secret Key": "シークレットキー",+ "Secret Key Encoding": "シークレットキーのエンコード",+ "Length": "長さ",+ "SHA256 suits most uses. MD5 is fast but not secure.": "ほとんどの用途には SHA256 が適しています。MD5 は高速ですが安全ではありません。",+ "The text to hash. The same text always gives the same hash.": "ハッシュ化するテキスト。同じテキストからは常に同じハッシュが得られます。",+ "The secret shared with the service that checks the signature.": "署名を検証するサービスと共有しているシークレット。",+ "Use UTF-8 for a plain text key. A wrong choice breaks the signature.": "プレーンテキストのキーには UTF-8 を使用します。選択を誤ると署名が一致しません。",+ "Use the algorithm the receiving service expects.": "受信側のサービスが求めるアルゴリズムを使用します。",+ "The exact text to sign, such as a request body.": "署名するテキストそのもの(リクエストボディなど)。",+ "How the signature is written. Hex if left empty.": "署名の表記形式。空欄の場合は Hex。",+ "Only needed if the private key is encrypted.": "秘密鍵が暗号化されている場合のみ必要です。",+ "How the signature is written. Base64 if left empty.": "署名の表記形式。空欄の場合は Base64。",+ "Number of characters, up to 256.": "文字数(最大 256)。",+ "Add symbols if the site accepts them.": "サイトが記号を受け付ける場合は記号を追加します。",+ "The base64 text to turn back into plain text.": "プレーンテキストに戻す base64 テキスト。",+ "The plain text to turn into base64.": "base64 に変換するプレーンテキスト。",+ "Only the owner of the matching private key can open it.": "対応する秘密鍵の所有者だけが開けます。",+ "The recipient's public key in ASCII armor format.": "ASCII アーマー形式の受信者の公開鍵。",+ "With Symbols": "記号あり"}\ No newline at end of filediff --git a/packages/pieces/core/crypto/src/i18n/nl.json b/packages/pieces/core/crypto/src/i18n/nl.jsonindex e4f80d45510..89ee234176f 100644--- a/packages/pieces/core/crypto/src/i18n/nl.json+++ b/packages/pieces/core/crypto/src/i18n/nl.json@@ -49,5 +49,29 @@"SHA384": "SHA384","The text to be signed": "The text to be signed","Output Encoding": "Output Encoding",- "The encoding of the output signature": "The encoding of the output signature"+ "The encoding of the output signature": "The encoding of the output signature",+ "Hash, sign and encode text, encrypt files and generate passwords": "Tekst hashen, ondertekenen en coderen, bestanden versleutelen en wachtwoorden genereren",+ "Signs text with a shared secret key using HMAC.": "Ondertekent tekst met een gedeelde geheime sleutel via HMAC.",+ "Signs text with an RSA private key.": "Ondertekent tekst met een private RSA-sleutel.",+ "Encrypts a file with the recipient's OpenPGP public key.": "Versleutelt een bestand met de publieke OpenPGP-sleutel van de ontvanger.",+ "Algorithm": "Algoritme",+ "Secret Key": "Geheime sleutel",+ "Secret Key Encoding": "Codering van geheime sleutel",+ "Length": "Lengte",+ "SHA256 suits most uses. MD5 is fast but not secure.": "SHA256 past bij de meeste toepassingen. MD5 is snel maar niet veilig.",+ "The text to hash. The same text always gives the same hash.": "De tekst om te hashen. Dezelfde tekst geeft altijd dezelfde hash.",+ "The secret shared with the service that checks the signature.": "Het geheim dat u deelt met de dienst die de handtekening controleert.",+ "Use UTF-8 for a plain text key. A wrong choice breaks the signature.": "Gebruik UTF-8 voor een sleutel als platte tekst. Een verkeerde keuze maakt de handtekening ongeldig.",+ "Use the algorithm the receiving service expects.": "Gebruik het algoritme dat de ontvangende dienst verwacht.",+ "The exact text to sign, such as a request body.": "De exacte tekst om te ondertekenen, zoals een request body.",+ "How the signature is written. Hex if left empty.": "Hoe de handtekening wordt geschreven. Hex als leeg.",+ "Only needed if the private key is encrypted.": "Alleen nodig als de private sleutel versleuteld is.",+ "How the signature is written. Base64 if left empty.": "Hoe de handtekening wordt geschreven. Base64 als leeg.",+ "Number of characters, up to 256.": "Aantal tekens, maximaal 256.",+ "Add symbols if the site accepts them.": "Voeg symbolen toe als de site ze accepteert.",+ "The base64 text to turn back into plain text.": "De base64-tekst om terug te zetten naar platte tekst.",+ "The plain text to turn into base64.": "De platte tekst om naar base64 om te zetten.",+ "Only the owner of the matching private key can open it.": "Alleen de eigenaar van de bijbehorende private sleutel kan het openen.",+ "The recipient's public key in ASCII armor format.": "De publieke sleutel van de ontvanger in ASCII-armor-formaat.",+ "With Symbols": "Met symbolen"}\ No newline at end of filediff --git a/packages/pieces/core/crypto/src/i18n/pt.json b/packages/pieces/core/crypto/src/i18n/pt.jsonindex 7933fc4e25a..ae128f13db0 100644--- a/packages/pieces/core/crypto/src/i18n/pt.json+++ b/packages/pieces/core/crypto/src/i18n/pt.json@@ -49,5 +49,29 @@"SHA384": "SHA384","The text to be signed": "The text to be signed","Output Encoding": "Output Encoding",- "The encoding of the output signature": "The encoding of the output signature"+ "The encoding of the output signature": "The encoding of the output signature",+ "Hash, sign and encode text, encrypt files and generate passwords": "Gere hash, assine e codifique texto, criptografe arquivos e gere senhas",+ "Signs text with a shared secret key using HMAC.": "Assina texto com uma chave secreta compartilhada usando HMAC.",+ "Signs text with an RSA private key.": "Assina texto com uma chave privada RSA.",+ "Encrypts a file with the recipient's OpenPGP public key.": "Criptografa um arquivo com a chave pública OpenPGP do destinatário.",+ "Algorithm": "Algoritmo",+ "Secret Key": "Chave secreta",+ "Secret Key Encoding": "Codificação da chave secreta",+ "Length": "Comprimento",+ "SHA256 suits most uses. MD5 is fast but not secure.": "SHA256 serve para a maioria dos usos. MD5 é rápido, mas não é seguro.",+ "The text to hash. The same text always gives the same hash.": "O texto para gerar o hash. O mesmo texto sempre gera o mesmo hash.",+ "The secret shared with the service that checks the signature.": "O segredo compartilhado com o serviço que verifica a assinatura.",+ "Use UTF-8 for a plain text key. A wrong choice breaks the signature.": "Use UTF-8 para uma chave em texto simples. Uma escolha errada invalida a assinatura.",+ "Use the algorithm the receiving service expects.": "Use o algoritmo que o serviço de destino espera.",+ "The exact text to sign, such as a request body.": "O texto exato a assinar, como o corpo de uma requisição.",+ "How the signature is written. Hex if left empty.": "Como a assinatura é escrita. Hex se ficar vazio.",+ "Only needed if the private key is encrypted.": "Necessária apenas se a chave privada estiver criptografada.",+ "How the signature is written. Base64 if left empty.": "Como a assinatura é escrita. Base64 se ficar vazio.",+ "Number of characters, up to 256.": "Número de caracteres, até 256.",+ "Add symbols if the site accepts them.": "Adicione símbolos se o site aceitar.",+ "The base64 text to turn back into plain text.": "O texto base64 a converter de volta em texto simples.",+ "The plain text to turn into base64.": "O texto simples a converter em base64.",+ "Only the owner of the matching private key can open it.": "Só o dono da chave privada correspondente pode abri-lo.",+ "The recipient's public key in ASCII armor format.": "A chave pública do destinatário no formato ASCII armor.",+ "With Symbols": "Com símbolos"}\ No newline at end of filediff --git a/packages/pieces/core/crypto/src/i18n/ru.json b/packages/pieces/core/crypto/src/i18n/ru.jsonindex 5599ba82062..3901b64fa79 100644--- a/packages/pieces/core/crypto/src/i18n/ru.json+++ b/packages/pieces/core/crypto/src/i18n/ru.json@@ -34,5 +34,29 @@"Hex": "Гекс","Base64": "Base64","Alphanumeric": "Alphanumeric",- "Alphanumeric + Symbols": "Alphanumeric + Symbols"+ "Alphanumeric + Symbols": "Alphanumeric + Symbols",+ "Hash, sign and encode text, encrypt files and generate passwords": "Хеширование, подпись и кодирование текста, шифрование файлов и генерация паролей",+ "Signs text with a shared secret key using HMAC.": "Подписывает текст общим секретным ключом с помощью HMAC.",+ "Signs text with an RSA private key.": "Подписывает текст закрытым ключом RSA.",+ "Encrypts a file with the recipient's OpenPGP public key.": "Шифрует файл открытым ключом OpenPGP получателя.",+ "Algorithm": "Алгоритм",+ "Secret Key": "Секретный ключ",+ "Secret Key Encoding": "Кодировка секретного ключа",+ "Length": "Длина",+ "SHA256 suits most uses. MD5 is fast but not secure.": "SHA256 подходит в большинстве случаев. MD5 быстрый, но небезопасный.",+ "The text to hash. The same text always gives the same hash.": "Текст для хеширования. Один и тот же текст всегда даёт один и тот же хеш.",+ "The secret shared with the service that checks the signature.": "Секрет, общий с сервисом, который проверяет подпись.",+ "Use UTF-8 for a plain text key. A wrong choice breaks the signature.": "Выберите UTF-8 для ключа в виде обычного текста. Неверный выбор делает подпись недействительной.",+ "Use the algorithm the receiving service expects.": "Используйте алгоритм, который ожидает принимающий сервис.",+ "The exact text to sign, such as a request body.": "Точный текст для подписи, например тело запроса.",+ "How the signature is written. Hex if left empty.": "Формат подписи. Hex, если не заполнено.",+ "Only needed if the private key is encrypted.": "Нужна, только если закрытый ключ зашифрован.",+ "How the signature is written. Base64 if left empty.": "Формат подписи. Base64, если не заполнено.",+ "Number of characters, up to 256.": "Количество символов, не более 256.",+ "Add symbols if the site accepts them.": "Добавьте спецсимволы, если сайт их принимает.",+ "The base64 text to turn back into plain text.": "Текст base64 для обратного преобразования в обычный текст.",+ "The plain text to turn into base64.": "Обычный текст для преобразования в base64.",+ "Only the owner of the matching private key can open it.": "Открыть его сможет только владелец соответствующего закрытого ключа.",+ "The recipient's public key in ASCII armor format.": "Открытый ключ получателя в формате ASCII armor.",+ "With Symbols": "Со спецсимволами"}\ No newline at end of filediff --git a/packages/pieces/core/crypto/src/i18n/translation.json b/packages/pieces/core/crypto/src/i18n/translation.jsonindex a72cc8b961c..26de587f3f0 100644--- a/packages/pieces/core/crypto/src/i18n/translation.json+++ b/packages/pieces/core/crypto/src/i18n/translation.json@@ -1,36 +1,46 @@{- "Generate random passwords and hash existing text": "Generate random passwords and hash existing text",+ "Hash, sign and encode text, encrypt files and generate passwords": "Hash, sign and encode text, encrypt files and generate passwords","Text to Hash": "Text to Hash","Generate HMAC Signature": "Generate HMAC Signature",+ "Generate RSA Signature": "Generate RSA Signature","Generate Password": "Generate Password","Base64 Decode": "Base64 Decode","Base64 Encode": "Base64 Encode","OpenPGP Encrypt": "OpenPGP Encrypt","Converts text to a hash value using various hashing algorithms": "Converts text to a hash value using various hashing algorithms",- "Converts text to a HMAC signed hash value using various hashing algorithms": "Converts text to a HMAC signed hash value using various hashing algorithms",+ "Signs text with a shared secret key using HMAC.": "Signs text with a shared secret key using HMAC.",+ "Signs text with an RSA private key.": "Signs text with an RSA private key.","Generates a random password with the specified length": "Generates a random password with the specified length","Converts base64 text back to plain text.": "Converts base64 text back to plain text.","Converts plain text into base64 format.": "Converts plain text into base64 format.",- "Encrypt a file using OpenPGP public key": "Encrypt a file using OpenPGP public key",- "Method": "Method",+ "Encrypts a file with the recipient's OpenPGP public key.": "Encrypts a file with the recipient's OpenPGP public key.",+ "Algorithm": "Algorithm","Text": "Text",- "Secret key": "Secret key",- "Secret key encoding": "Secret key encoding",- "Password Length": "Password Length",+ "Secret Key": "Secret Key",+ "Secret Key Encoding": "Secret Key Encoding",+ "Output Encoding": "Output Encoding",+ "Private Key": "Private Key",+ "Passphrase": "Passphrase",+ "Length": "Length","Character Set": "Character Set","File": "File","Public Key": "Public Key",- "The hashing algorithm to use": "The hashing algorithm to use",- "The text to be hashed": "The text to be hashed",- "The secret key to encrypt": "The secret key to encrypt",- "The secret key encoding to use": "The secret key encoding to use",- "The text to be hashed and encrypted": "The text to be hashed and encrypted",- "The length of the password (maximum 256)": "The length of the password (maximum 256)",- "The character set to use when generating the password": "The character set to use when generating the password",- "The text to be decoded.": "The text to be decoded.",- "The text to be encoded.": "The text to be encoded.",- "The file to encrypt": "The file to encrypt",- "The PGP public key in ASCII armor format": "The PGP public key in ASCII armor format",+ "SHA256 suits most uses. MD5 is fast but not secure.": "SHA256 suits most uses. MD5 is fast but not secure.",+ "The text to hash. The same text always gives the same hash.": "The text to hash. The same text always gives the same hash.",+ "The secret shared with the service that checks the signature.": "The secret shared with the service that checks the signature.",+ "Use UTF-8 for a plain text key. A wrong choice breaks the signature.": "Use UTF-8 for a plain text key. A wrong choice breaks the signature.",+ "Use the algorithm the receiving service expects.": "Use the algorithm the receiving service expects.",+ "The exact text to sign, such as a request body.": "The exact text to sign, such as a request body.",+ "How the signature is written. Hex if left empty.": "How the signature is written. Hex if left empty.",+ "The RSA private key in PEM format (PKCS#1 or PKCS#8)": "The RSA private key in PEM format (PKCS#1 or PKCS#8)",+ "Only needed if the private key is encrypted.": "Only needed if the private key is encrypted.",+ "How the signature is written. Base64 if left empty.": "How the signature is written. Base64 if left empty.",+ "Number of characters, up to 256.": "Number of characters, up to 256.",+ "Add symbols if the site accepts them.": "Add symbols if the site accepts them.",+ "The base64 text to turn back into plain text.": "The base64 text to turn back into plain text.",+ "The plain text to turn into base64.": "The plain text to turn into base64.",+ "Only the owner of the matching private key can open it.": "Only the owner of the matching private key can open it.",+ "The recipient's public key in ASCII armor format.": "The recipient's public key in ASCII armor format.","MD5": "MD5","SHA256": "SHA256","SHA512": "SHA512",@@ -38,16 +48,7 @@"UTF-8": "UTF-8","Hex": "Hex","Base64": "Base64",- "Alphanumeric": "Alphanumeric",- "Alphanumeric + Symbols": "Alphanumeric + Symbols",- "Generate RSA Signature": "Generate RSA Signature",- "Signs text with an RSA private key using SHA-256, SHA-384, or SHA-512 (RSA-SHA256 by default)": "Signs text with an RSA private key using SHA-256, SHA-384, or SHA-512 (RSA-SHA256 by default)",- "Private Key": "Private Key",- "The RSA private key in PEM format (PKCS#1 or PKCS#8)": "The RSA private key in PEM format (PKCS#1 or PKCS#8)",- "Passphrase": "Passphrase",- "The passphrase protecting the private key, leave empty if it is not encrypted": "The passphrase protecting the private key, leave empty if it is not encrypted","SHA384": "SHA384",- "The text to be signed": "The text to be signed",- "Output Encoding": "Output Encoding",- "The encoding of the output signature": "The encoding of the output signature"+ "Alphanumeric": "Alphanumeric",+ "With Symbols": "With Symbols"}\ No newline at end of filediff --git a/packages/pieces/core/crypto/src/i18n/zh.json b/packages/pieces/core/crypto/src/i18n/zh.jsonindex a6f63170d9c..15133fa2f8c 100644--- a/packages/pieces/core/crypto/src/i18n/zh.json+++ b/packages/pieces/core/crypto/src/i18n/zh.json@@ -49,5 +49,29 @@"SHA384": "SHA384","The text to be signed": "The text to be signed","Output Encoding": "Output Encoding",- "The encoding of the output signature": "The encoding of the output signature"+ "The encoding of the output signature": "The encoding of the output signature",+ "Hash, sign and encode text, encrypt files and generate passwords": "对文本进行哈希、签名和编码,加密文件并生成密码",+ "Signs text with a shared secret key using HMAC.": "使用共享密钥通过 HMAC 对文本签名。",+ "Signs text with an RSA private key.": "使用 RSA 私钥对文本签名。",+ "Encrypts a file with the recipient's OpenPGP public key.": "使用收件人的 OpenPGP 公钥加密文件。",+ "Algorithm": "算法",+ "Secret Key": "密钥",+ "Secret Key Encoding": "密钥编码",+ "Length": "长度",+ "SHA256 suits most uses. MD5 is fast but not secure.": "SHA256 适用于大多数场景。MD5 速度快但不安全。",+ "The text to hash. The same text always gives the same hash.": "要哈希的文本。相同的文本总是得到相同的哈希。",+ "The secret shared with the service that checks the signature.": "与验证签名的服务共享的密钥。",+ "Use UTF-8 for a plain text key. A wrong choice breaks the signature.": "纯文本密钥请选择 UTF-8。选错会导致签名不匹配。",+ "Use the algorithm the receiving service expects.": "使用接收方服务要求的算法。",+ "The exact text to sign, such as a request body.": "要签名的原始文本,例如请求正文。",+ "How the signature is written. Hex if left empty.": "签名的编码方式。留空则为 Hex。",+ "Only needed if the private key is encrypted.": "仅在私钥已加密时需要。",+ "How the signature is written. Base64 if left empty.": "签名的编码方式。留空则为 Base64。",+ "Number of characters, up to 256.": "字符数,最多 256。",+ "Add symbols if the site accepts them.": "如果网站允许,可加入符号。",+ "The base64 text to turn back into plain text.": "要还原为纯文本的 base64 文本。",+ "The plain text to turn into base64.": "要转换为 base64 的纯文本。",+ "Only the owner of the matching private key can open it.": "只有持有对应私钥的人才能打开。",+ "The recipient's public key in ASCII armor format.": "收件人的公钥,ASCII armor 格式。",+ "With Symbols": "含符号"}\ No newline at end of filediff --git a/packages/pieces/core/crypto/src/index.ts b/packages/pieces/core/crypto/src/index.tsindex abda5481dca..2ad9b08bcad 100644--- a/packages/pieces/core/crypto/src/index.ts+++ b/packages/pieces/core/crypto/src/index.ts@@ -10,9 +10,9 @@ import { openpgpEncrypt } from './lib/actions/openpgp-encrypt';export const Crypto = createPiece({displayName: 'Crypto',- description: 'Generate random passwords and hash existing text',+ description: 'Hash, sign and encode text, encrypt files and generate passwords',auth: PieceAuth.None(),- minimumSupportedRelease: '0.30.0',+ minimumSupportedRelease: '0.88.2',logoUrl: 'https://cdn.activepieces.com/pieces/new-core/crypto.svg',categories: [PieceCategory.CORE],authors: ['AbdullahBitar', 'kishanprmr', 'abuaboud', 'matthieu-lombard', 'antonyvigouret', 'danielpoonwj', 'prasanna2000-max'],diff --git a/packages/pieces/core/crypto/src/lib/actions/base64-decode.ts b/packages/pieces/core/crypto/src/lib/actions/base64-decode.tsindex bd05399a2fc..3a800bdc12d 100644--- a/packages/pieces/core/crypto/src/lib/actions/base64-decode.ts+++ b/packages/pieces/core/crypto/src/lib/actions/base64-decode.ts@@ -12,7 +12,8 @@ export const base64Decode = createAction({props: {text: Property.ShortText({displayName: 'Text',- description: 'The text to be decoded.',+ description: 'The base64 text to turn back into plain text.',+ placeholder: 'SGVsbG8gd29ybGQ=',required: true,}),},diff --git a/packages/pieces/core/crypto/src/lib/actions/base64-encode.ts b/packages/pieces/core/crypto/src/lib/actions/base64-encode.tsindex 2f397bc093f..a19d8db4f50 100644--- a/packages/pieces/core/crypto/src/lib/actions/base64-encode.ts+++ b/packages/pieces/core/crypto/src/lib/actions/base64-encode.ts@@ -12,7 +12,8 @@ export const base64Encode = createAction({props: {text: Property.ShortText({displayName: 'Text',- description: 'The text to be encoded.',+ description: 'The plain text to turn into base64.',+ placeholder: 'Hello world',required: true,}),},diff --git a/packages/pieces/core/crypto/src/lib/actions/generate-password.ts b/packages/pieces/core/crypto/src/lib/actions/generate-password.tsindex b74a8a5b70b..4ee76b8a7a9 100644--- a/packages/pieces/core/crypto/src/lib/actions/generate-password.ts+++ b/packages/pieces/core/crypto/src/lib/actions/generate-password.ts@@ -2,6 +2,7 @@ import {Property,createAction,} from '@activepieces/pieces-framework';+import { randomInt } from 'crypto';import { generatePasswordActionOutputSchema } from '../output-schemas';import * as z from 'zod/mini'import { propsValidation } from '@activepieces/pieces-common';@@ -14,21 +15,26 @@ export const generatePassword = createAction({aiMetadata: { description: 'Generates a random password of a given length, from either an alphanumeric character set or alphanumeric plus symbols. Pick this when a flow needs a fresh secret or random token to hand to a later step; it is a value generator, not a digest, so use Text to Hash or Generate HMAC Signature to hash existing text. Length must be 256 or less; not idempotent: every call returns a different password, so capture the output once and reuse it rather than re-running.', idempotent: false },displayName: 'Generate Password',outputSchema: generatePasswordActionOutputSchema,+ propertyGroups: [+ { key: 'password', display: 'section', label: 'Password', icon: 'sliders', props: ['length', 'characterSet'] },+ ],props: {length: Property.Number({- displayName: 'Password Length',- description: 'The length of the password (maximum 256)',+ displayName: 'Length',+ description: 'Number of characters, up to 256.',required: true,+ defaultValue: 16,}),characterSet: Property.StaticDropdown({displayName: 'Character Set',- description: 'The character set to use when generating the password',+ description: 'Add symbols if the site accepts them.',required: true,defaultValue: 'alphanumeric',+ display: 'cards',options: {options: [{ label: 'Alphanumeric', value: 'alphanumeric' },- { label: 'Alphanumeric + Symbols', value: 'alphanumeric-symbols' },+ { label: 'With Symbols', value: 'alphanumeric-symbols' },],},}),@@ -41,12 +47,12 @@ export const generatePassword = createAction({const charset = context.propsValue.characterSet === 'alphanumeric'? 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789': 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+~`|}{[]:;?><,./-=';-+let password = '';const length = context.propsValue.length;for (let i = 0; i < length; i++) {- const randomIndex = Math.floor(Math.random() * charset.length);+ const randomIndex = randomInt(charset.length);password += charset[randomIndex];}diff --git a/packages/pieces/core/crypto/src/lib/actions/hash-text.ts b/packages/pieces/core/crypto/src/lib/actions/hash-text.tsindex 0eebace85d2..fe64428ce36 100644--- a/packages/pieces/core/crypto/src/lib/actions/hash-text.ts+++ b/packages/pieces/core/crypto/src/lib/actions/hash-text.ts@@ -10,11 +10,16 @@ export const hashText = createAction({aiMetadata: { description: 'Computes a one-way cryptographic digest of a text string as a hex value, with the algorithm chosen from MD5, SHA256, SHA512 or SHA3-512. Pick this for checksums, fingerprints or de-duplication keys; use Generate HMAC Signature when the digest must be keyed with a shared secret, and Base64 Encode when you need reversible encoding instead of a hash. Requires the text plus an algorithm; pure computation and idempotent, since identical input always yields the same digest.', idempotent: true },displayName: 'Text to Hash',outputSchema: hashTextActionOutputSchema,+ propertyGroups: [+ { key: 'hash', display: 'section', label: 'Hash', icon: 'code', props: ['text', 'method'] },+ ],props: {method: Property.StaticDropdown({- displayName: 'Method',- description: 'The hashing algorithm to use',+ displayName: 'Algorithm',+ description: 'SHA256 suits most uses. MD5 is fast but not secure.',required: true,+ defaultValue: 'sha256',+ display: 'cards',options: {options: [{ label: 'MD5', value: 'md5' },@@ -26,8 +31,9 @@ export const hashText = createAction({}),text: Property.ShortText({displayName: 'Text',- description: 'The text to be hashed',+ description: 'The text to hash. The same text always gives the same hash.',required: true,+ placeholder: 'Hello world',}),},async run(context) {diff --git a/packages/pieces/core/crypto/src/lib/actions/hmac-signature.ts b/packages/pieces/core/crypto/src/lib/actions/hmac-signature.tsindex 8298e42eae6..f1b338f7363 100644--- a/packages/pieces/core/crypto/src/lib/actions/hmac-signature.ts+++ b/packages/pieces/core/crypto/src/lib/actions/hmac-signature.ts@@ -7,21 +7,26 @@ export const hmacSignature = createAction({audience: 'both',name: 'hmac-signature',classification: 'READ',- description:- 'Converts text to a HMAC signed hash value using various hashing algorithms',+ description: 'Signs text with a shared secret key using HMAC.',aiMetadata: { description: 'Computes a keyed HMAC digest of a text string with a secret key, selecting the hash algorithm and how the secret key itself is interpreted (UTF-8, hex or base64). Pick this to sign or verify webhook payloads and API requests that use a shared secret; use Text to Hash for an unkeyed digest and Generate RSA Signature for asymmetric private-key signing. The secret-key encoding must match how the key was issued or the signature will not match; pure computation and idempotent.', idempotent: true },displayName: 'Generate HMAC Signature',outputSchema: hmacSignatureActionOutputSchema,+ propertyGroups: [+ { key: 'key', display: 'section', label: 'Signing key', icon: 'code', props: ['secretKey', 'secretKeyEncoding'] },+ { key: 'signature', display: 'section', label: 'Signature', icon: 'sliders', props: ['text', 'method', 'outputEncoding'] },+ ],props: {secretKey: Property.ShortText({- displayName: 'Secret key',- description: 'The secret key to encrypt',+ displayName: 'Secret Key',+ description: 'The secret shared with the service that checks the signature.',required: true,}),secretKeyEncoding: Property.StaticDropdown<'utf-8' | 'hex' | 'base64'>({- displayName: 'Secret key encoding',- description: 'The secret key encoding to use',+ displayName: 'Secret Key Encoding',+ description: 'Use UTF-8 for a plain text key. A wrong choice breaks the signature.',required: true,+ defaultValue: 'utf-8',+ display: 'cards',options: {options: [{ label: 'UTF-8', value: 'utf-8' },@@ -31,9 +36,11 @@ export const hmacSignature = createAction({},}),method: Property.StaticDropdown({- displayName: 'Method',- description: 'The hashing algorithm to use',+ displayName: 'Algorithm',+ description: 'Use the algorithm the receiving service expects.',required: true,+ defaultValue: 'sha256',+ display: 'cards',options: {options: [{ label: 'MD5', value: 'md5' },@@ -44,12 +51,13 @@ export const hmacSignature = createAction({}),text: Property.ShortText({displayName: 'Text',- description: 'The text to be hashed and encrypted',+ description: 'The exact text to sign, such as a request body.',required: true,+ placeholder: '{"id": 123}',}),outputEncoding: Property.StaticDropdown<'hex' | 'base64'>({displayName: 'Output Encoding',- description: 'The encoding of the output signature',+ description: 'How the signature is written. Hex if left empty.',required: false,defaultValue: 'hex',options: {diff --git a/packages/pieces/core/crypto/src/lib/actions/openpgp-encrypt.ts b/packages/pieces/core/crypto/src/lib/actions/openpgp-encrypt.tsindex a6395323ada..81e2823191a 100644--- a/packages/pieces/core/crypto/src/lib/actions/openpgp-encrypt.ts+++ b/packages/pieces/core/crypto/src/lib/actions/openpgp-encrypt.ts@@ -7,18 +7,22 @@ export const openpgpEncrypt = createAction({name: 'openpgpEncrypt',classification: 'READ',displayName: 'OpenPGP Encrypt',- description: 'Encrypt a file using OpenPGP public key',+ description: "Encrypts a file with the recipient's OpenPGP public key.",aiMetadata: { description: 'Encrypts a binary file with an OpenPGP public key in ASCII-armor format and writes out an armored .pgp file. Pick this to protect an attachment before handing it to a recipient who holds the matching private key; this piece offers no decrypt counterpart. Requires a valid armored public key, and an unreadable key is reported as a failed result rather than raising an error; not idempotent: each call derives a fresh random session key, so the same input produces different ciphertext.', idempotent: false },outputSchema: openpgpEncryptActionOutputSchema,+ propertyGroups: [+ { key: 'encrypt', display: 'section', label: 'Encrypt for recipient', icon: 'file', props: ['file', 'publicKey'] },+ ],props: {file: Property.File({displayName: 'File',- description: 'The file to encrypt',+ description: 'Only the owner of the matching private key can open it.',required: true,}),publicKey: Property.LongText({displayName: 'Public Key',- description: 'The PGP public key in ASCII armor format',+ description: "The recipient's public key in ASCII armor format.",+ placeholder: '-----BEGIN PGP PUBLIC KEY BLOCK-----',required: true,}),},diff --git a/packages/pieces/core/crypto/src/lib/actions/rsa-signature.ts b/packages/pieces/core/crypto/src/lib/actions/rsa-signature.tsindex 4a8fd0ab159..4a46ab75b4b 100644--- a/packages/pieces/core/crypto/src/lib/actions/rsa-signature.ts+++ b/packages/pieces/core/crypto/src/lib/actions/rsa-signature.ts@@ -7,27 +7,31 @@ export const rsaSignature = createAction({name: 'rsa-signature',classification: 'READ',displayName: 'Generate RSA Signature',- description:- 'Signs text with an RSA private key using SHA-256, SHA-384, or SHA-512 (RSA-SHA256 by default)',+ description: 'Signs text with an RSA private key.',aiMetadata: { description: 'Signs a text payload with an RSA private key in PEM format (PKCS#1 or PKCS#8), hashing with SHA-256, SHA-384 or SHA-512. Pick this for asymmetric request signing where the verifier holds only the public key; use Generate HMAC Signature when both sides share one symmetric secret, and Text to Hash for a plain unkeyed digest. Requires the private key plus its passphrase if the key is encrypted; signing uses deterministic PKCS#1 v1.5 padding, so it is idempotent.', idempotent: true },outputSchema: rsaSignatureActionOutputSchema,+ propertyGroups: [+ { key: 'key', display: 'section', label: 'Signing key', icon: 'code', props: ['privateKey', 'passphrase'] },+ { key: 'signature', display: 'section', label: 'Signature', icon: 'sliders', props: ['text', 'method', 'outputEncoding'] },+ ],props: {privateKey: Property.LongText({displayName: 'Private Key',description: 'The RSA private key in PEM format (PKCS#1 or PKCS#8)',required: true,+ placeholder: '-----BEGIN PRIVATE KEY-----',}),passphrase: Property.ShortText({displayName: 'Passphrase',- description:- 'The passphrase protecting the private key, leave empty if it is not encrypted',+ description: 'Only needed if the private key is encrypted.',required: false,}),method: Property.StaticDropdown({- displayName: 'Method',- description: 'The hashing algorithm to use',+ displayName: 'Algorithm',+ description: 'Use the algorithm the receiving service expects.',required: true,defaultValue: 'sha256',+ display: 'cards',options: {options: [{ label: 'SHA256', value: 'sha256' },@@ -38,12 +42,13 @@ export const rsaSignature = createAction({}),text: Property.LongText({displayName: 'Text',- description: 'The text to be signed',+ description: 'The exact text to sign, such as a request body.',required: true,+ placeholder: '{"id": 123}',}),outputEncoding: Property.StaticDropdown<'hex' | 'base64'>({displayName: 'Output Encoding',- description: 'The encoding of the output signature',+ description: 'How the signature is written. Base64 if left empty.',required: false,defaultValue: 'base64',options: {diff --git a/packages/pieces/core/crypto/test/generate-password.test.ts b/packages/pieces/core/crypto/test/generate-password.test.tsindex c09eea81cb0..fc14df519e4 100644--- a/packages/pieces/core/crypto/test/generate-password.test.ts+++ b/packages/pieces/core/crypto/test/generate-password.test.ts@@ -20,6 +20,27 @@ describe('generatePassword', () => {expect(result).toMatch(/^[a-zA-Z0-9]+$/);});+ test('generates symbols password from the symbols charset only', async () => {+ const charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+~`|}{[]:;?><,./-=';+ const ctx = createMockActionContext({+ propsValue: { length: 200, characterSet: 'alphanumeric-symbols' },+ });+ const result = await generatePassword.run(ctx);+ const password = typeof result === 'string' ? result : '';+ expect(password).toHaveLength(200);+ expect([...password].every((ch) => charset.includes(ch))).toBe(true);+ });++ test('never uses Math.random to pick characters', async () => {+ const mathRandom = vi.spyOn(Math, 'random');+ const ctx = createMockActionContext({+ propsValue: { length: 64, characterSet: 'alphanumeric-symbols' },+ });+ await generatePassword.run(ctx);+ expect(mathRandom).not.toHaveBeenCalled();+ mathRandom.mockRestore();+ });+test('throws on invalid length (> 256)', async () => {const ctx = createMockActionContext({propsValue: { length: 300, characterSet: 'alphanumeric' },