小编Lat*_*suj的帖子

算法LRU,实现这个算法需要多少比特?

我对算法LRU有一点疑问.如果您有一个包含四个块的缓存,那么您需要多少位才能实现此算法?

algorithm lru cpu-cache

6
推荐指数
2
解决办法
1万
查看次数

Rijndael 加密 VB 到 Javascript

我有一项有趣的任务要为我的一位客户做...我应该在我为他构建的应用程序上使用此应用程序之一的帐户。之前的应用程序是用VB编写的,并使用以下函数对密码数据进行加密:

Public Function Encrypt(ByVal plainText As String) As String
   Dim passPhrase As String = "minePassPhrase"
   Dim saltValue As String = "mySaltValue"
   Dim hashAlgorithm As String = "SHA1"
   Dim passwordIterations As Integer = 2
   Dim initVector As String = "@1B2c3D4e5F6g7H8"
   Dim keySize As Integer = 256
   Dim initVectorBytes As Byte() = Encoding.ASCII.GetBytes(initVector)
   Dim saltValueBytes As Byte() = Encoding.ASCII.GetBytes(saltValue)
   Dim plainTextBytes As Byte() = Encoding.UTF8.GetBytes(plainText)
   Dim password As New PasswordDeriveBytes(passPhrase, saltValueBytes, hashAlgorithm, passwordIterations)
   Dim keyBytes As Byte() = password.GetBytes(keySize \ 8)
   Dim …
Run Code Online (Sandbox Code Playgroud)

javascript vb.net encryption rijndael node.js

1
推荐指数
1
解决办法
723
查看次数

标签 统计

algorithm ×1

cpu-cache ×1

encryption ×1

javascript ×1

lru ×1

node.js ×1

rijndael ×1

vb.net ×1