[英]Q about AES (CBC) and IV (Is it possible to continue with aes(CBC) encryption? ,… )
[英]Generating aes cbc key from password and iv in dart
任何人都知道如何從iv和密碼生成用於dart中aes加密的密鑰? 就像用 C# 編寫的這段代碼:
var spec = new Rfc2898DeriveBytes(Encoding.UTF8.GetBytes(PASSWORD), Encoding.UTF8.GetBytes(SALT), 65536);
byte[] key = spec.GetBytes(16);
謝謝大家,我使用 C# 代碼生成了密鑰,然后在我的顫振應用程序中將其用作常量,非常感謝您的幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.