mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 13:39:44 -08:00
968b733fd6
* ci: Start supporting Node.js 18 Node.js 18 became the active LTS on 2022-10-25, and Node.js 16 went into maintenance mode. https://github.com/nodejs/Release#release-schedule We should also slowly deprecate node 16 support, [as support for it is ends much earlier now, due to support for openssl 1.1.1 ending](https://nodejs.org/en/blog/announcements/nodejs16-eol). * Remove hashing algorithms that are not available in newer node.js/openssl - RSA-MD4 - RSA-MDC2 - md4 - md4WithRSAEncryption - mdc2 - mdc2WithRSA * in e2e tests, resolve `localhost` to ipv4 instead of ipv6
279 lines
6.8 KiB
JSON
279 lines
6.8 KiB
JSON
{
|
|
"name": "Crypto Test",
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"id": "78f64c0f-d6a7-47fb-920d-5471fcd8caa1",
|
|
"name": "When clicking \"Execute Workflow\"",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"typeVersion": 1,
|
|
"position": [-480, 460]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"value": "test"
|
|
},
|
|
"id": "90831322-8a73-40ac-ae52-84a6504d3d95",
|
|
"name": "Crypto Hash into Hex",
|
|
"type": "n8n-nodes-base.crypto",
|
|
"typeVersion": 1,
|
|
"position": [360, 660]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"value": "test"
|
|
},
|
|
"id": "9836f128-6798-498e-8752-ba447218ce21",
|
|
"name": "Crypto Hash into MD5",
|
|
"type": "n8n-nodes-base.crypto",
|
|
"typeVersion": 1,
|
|
"position": [360, 500]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"action": "sign",
|
|
"value": "test",
|
|
"algorithm": "RSA-MD5",
|
|
"encoding": "base64",
|
|
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIBOgIBAAJBAKj34GkxFhD90vcNLYLInFEX6Ppy1tPf9Cnzj4p4WGeKLs1Pt8Qu\nKUpRKfFLfRYC9AIKjbJTWit+CqvjWYzvQwECAwEAAQJAIJLixBy2qpFoS4DSmoEm\no3qGy0t6z09AIJtH+5OeRV1be+N4cDYJKffGzDa88vQENZiRm0GRq6a+HPGQMd2k\nTQIhAKMSvzIBnni7ot/OSie2TmJLY4SwTQAevXysE2RbFDYdAiEBCUEaRQnMnbp7\n9mxDXDf6AU0cN/RPBjb9qSHDcWZHGzUCIG2Es59z8ugGrDY+pxLQnwfotadxd+Uy\nv/Ow5T0q5gIJAiEAyS4RaI9YG8EWx/2w0T67ZUVAw8eOMB6BIUg0Xcu+3okCIBOs\n/5OiPgoTdSy7bcF9IGpSE8ZgGKzgYQVZeN97YE00\n-----END RSA PRIVATE KEY-----"
|
|
},
|
|
"id": "4ec3781a-433d-4b68-bc94-3fbe6ed55a0e",
|
|
"name": "Crypto Sign data with RSA-MD5",
|
|
"type": "n8n-nodes-base.crypto",
|
|
"typeVersion": 1,
|
|
"position": [80, 860]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"action": "hmac",
|
|
"value": "test",
|
|
"secret": "-----BEGIN RSA PRIVATE KEY-----|MIIBOgIBAAJBAKj34GkxFhD90vcNLYLInFEX6Ppy1tPf9Cnzj4p4WGeKLs1Pt8QuKUpRKfFLfRYC9AIKjbJTWit+CqvjWYzvQwECAwEAAQJAIJLixBy2qpFoS4DSmoEmo3qGy0t6z09AIJtH+5OeRV1be+N4cDYJKffGzDa88vQENZiRm0GRq6a+HPGQMd2kTQIhAKMSvzIBnni7ot/OSie2TmJLY4SwTQAevXysE2RbFDYdAiEBCUEaRQnMnbp79mxDXDf6AU0cN/RPBjb9qSHDcWZHGzUCIG2Es59z8ugGrDY+pxLQnwfotadxd+Uyv/Ow5T0q5gIJAiEAyS4RaI9YG8EWx/2w0T67ZUVAw8eOMB6BIUg0Xcu+3okCIBOs/5OiPgoTdSy7bcF9IGpSE8ZgGKzgYQVZeN97YE00-----END RSA PRIVATE KEY-----",
|
|
"encoding": "base64"
|
|
},
|
|
"id": "797ba0d9-28e0-4494-bafd-d0603e85c303",
|
|
"name": "Crypto Hmac data with MD5",
|
|
"type": "n8n-nodes-base.crypto",
|
|
"typeVersion": 1,
|
|
"position": [360, 320]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"action": "generate"
|
|
},
|
|
"id": "a6682d88-0842-4884-9869-220597ac3d2a",
|
|
"name": "Crypto Generate UUID",
|
|
"type": "n8n-nodes-base.crypto",
|
|
"typeVersion": 1,
|
|
"position": [-160, 1060]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"conditions": {
|
|
"string": [
|
|
{
|
|
"value1": "={{ $json.data }}",
|
|
"operation": "regex",
|
|
"value2": "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": "89297cfb-e119-45b8-87b4-021a8272534b",
|
|
"name": "IF",
|
|
"type": "n8n-nodes-base.if",
|
|
"typeVersion": 1,
|
|
"position": [80, 1060]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "1954d932-2878-403d-ad16-373585dbe9cd",
|
|
"name": "No Operation, do nothing",
|
|
"type": "n8n-nodes-base.noOp",
|
|
"typeVersion": 1,
|
|
"position": [420, 1040]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"errorMessage": "Not a valid uuid"
|
|
},
|
|
"id": "b1154e93-9d39-40c6-8ca6-aadc8103cfbd",
|
|
"name": "Stop and Error",
|
|
"type": "n8n-nodes-base.stopAndError",
|
|
"typeVersion": 1,
|
|
"position": [260, 1180]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"fileSelector": "/test/binary.data"
|
|
},
|
|
"id": "09bbc611-c2ca-4750-94a7-d1bb4fc53a57",
|
|
"name": "Read Binary Files",
|
|
"type": "n8n-nodes-base.readBinaryFiles",
|
|
"typeVersion": 1,
|
|
"position": [-160, 40]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"binaryData": true
|
|
},
|
|
"id": "9f23080a-402d-4a82-821c-b74388cc9a26",
|
|
"name": "Crypto Hash Binary Data",
|
|
"type": "n8n-nodes-base.crypto",
|
|
"typeVersion": 1,
|
|
"position": [200, -80]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"action": "hmac",
|
|
"binaryData": true,
|
|
"secret": "-----BEGIN RSA PRIVATE KEY-----|MIIBOgIBAAJBAKj34GkxFhD90vcNLYLInFEX6Ppy1tPf9Cnzj4p4WGeKLs1Pt8QuKUpRKfFLfRYC9AIKjbJTWit+CqvjWYzvQwECAwEAAQJAIJLixBy2qpFoS4DSmoEmo3qGy0t6z09AIJtH+5OeRV1be+N4cDYJKffGzDa88vQENZiRm0GRq6a+HPGQMd2kTQIhAKMSvzIBnni7ot/OSie2TmJLY4SwTQAevXysE2RbFDYdAiEBCUEaRQnMnbp79mxDXDf6AU0cN/RPBjb9qSHDcWZHGzUCIG2Es59z8ugGrDY+pxLQnwfotadxd+Uyv/Ow5T0q5gIJAiEAyS4RaI9YG8EWx/2w0T67ZUVAw8eOMB6BIUg0Xcu+3okCIBOs/5OiPgoTdSy7bcF9IGpSE8ZgGKzgYQVZeN97YE00-----END RSA PRIVATE KEY-----",
|
|
"encoding": "base64"
|
|
},
|
|
"id": "43d5ffa2-9c95-4287-b582-b912071a05c1",
|
|
"name": "Crypto Hmac Binary Data",
|
|
"type": "n8n-nodes-base.crypto",
|
|
"typeVersion": 1,
|
|
"position": [200, 100]
|
|
}
|
|
],
|
|
"pinData": {
|
|
"Crypto Sign data with RSA-MD5": [
|
|
{
|
|
"json": {
|
|
"data": "MVr+iZiOFtHVwO0iKC+CF+QlrZZKcGk7zBvUrWHC1fHBeS6IoWa8B/wrMvazV5H1YR8tbK8baZHD/vUNdfvjiA=="
|
|
}
|
|
}
|
|
],
|
|
"Crypto Hash into MD5": [
|
|
{
|
|
"json": {
|
|
"data": "098f6bcd4621d373cade4e832627b4f6"
|
|
}
|
|
}
|
|
],
|
|
"Crypto Hash into Hex": [
|
|
{
|
|
"json": {
|
|
"data": "098f6bcd4621d373cade4e832627b4f6"
|
|
}
|
|
}
|
|
],
|
|
"Crypto Hmac data with MD5": [
|
|
{
|
|
"json": {
|
|
"data": "BBXLTeT2o/R6oy5H69Yh7w=="
|
|
}
|
|
}
|
|
],
|
|
"Crypto Hash Binary Data": [
|
|
{
|
|
"json": {
|
|
"data": "098f6bcd4621d373cade4e832627b4f6"
|
|
}
|
|
}
|
|
],
|
|
"Crypto Hmac Binary Data": [
|
|
{
|
|
"json": {
|
|
"data": "BBXLTeT2o/R6oy5H69Yh7w=="
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"connections": {
|
|
"When clicking \"Execute Workflow\"": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Crypto Hash into Hex",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Crypto Hash into MD5",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Crypto Sign data with RSA-MD5",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Crypto Hmac data with MD5",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Crypto Generate UUID",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read Binary Files",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Crypto Generate UUID": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "IF",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"IF": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "No Operation, do nothing",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "Stop and Error",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"No Operation, do nothing": {
|
|
"main": [
|
|
[]
|
|
]
|
|
},
|
|
"Read Binary Files": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Crypto Hash Binary Data",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Crypto Hmac Binary Data",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"active": false,
|
|
"settings": {},
|
|
"versionId": "399353bc-5707-41b2-8046-a55cdc69300d",
|
|
"id": "182",
|
|
"meta": {
|
|
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
|
|
},
|
|
"tags": []
|
|
} |