mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Migrate from crypto-js to native crypto (#7556)
[`crypto-js` has been
discontinued](1da3dabf93)
PS: We'll remove `crypto-js` usage from `n8n-workflow` and
`@n8n_io/license-sdk` in separate PRs.
This commit is contained in:
committed by
GitHub
parent
135f9214f5
commit
0bd4e742da
@@ -26,5 +26,10 @@ describe('Cipher', () => {
|
||||
const decrypted = cipher.decrypt('U2FsdGVkX194VEoX27o3+y5jUd1JTTmVwkOKjVhB6Jg=');
|
||||
expect(decrypted).toEqual('random-string');
|
||||
});
|
||||
|
||||
it('should not try to decrypt if the input is shorter than 16 bytes', () => {
|
||||
const decrypted = cipher.decrypt('U2FsdGVkX194VEo');
|
||||
expect(decrypted).toEqual('');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user