我需要C#中的AES算法.返回哈希值 [英] I Need AES algorithm in C#. which returnd Hash value

查看:81
本文介绍了我需要C#中的AES算法.返回哈希值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我想实现AES算法.我已经实现了.net内置算法.但它以全数字形式返回结果.我只想要散列值结果,结果应在0-9 A-F中.

请帮我.我在C#中需要它.

谢谢

Hello i want to implement AES algorithm. I have already implemented .net inbuilt algorithm. but it returns result in all aphanumeric. i want only hash value result the result should be in 0-9 A-F.

Please help me. I need it in C#.

Thanks

推荐答案

我不确定您已完成或正在尝试执行的操作-如评论中所述,AES是一种加密算法,而不是哈希算法.但是,无论您需要使用哪种方法,都请查看 Convert.ToBase64String方法 [ ^ ],这会将输出更改为可读"字符串.

您可能还需要 Convert.FromBase64String方法 [
I am not sure what you have done, or are trying to do - as mentioned in the comments, AES is an encryption algorithm, not a hashing algorithm. However, regardless of which you need to use look at the Convert.ToBase64String Method[^] which will change the output to a "readable" string.

You may also need the Convert.FromBase64String Method[^] to reverse the process.


这篇关于我需要C#中的AES算法.返回哈希值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆