甲方_________________________________________
公钥:
U3VuIERTQSBQdWJsaWMgS2V5CiAgICBQYXJhbWV0ZXJzOgogICAgcDoKICAgIGZjYTY4MmNlIDhl
MTJjYWJhIDI2ZWZjY2Y3IDExMGU1MjZkIGIwNzhiMDVlIGRlY2JjZDFlIGI0YTIwOGYzIGFlMTYx
N2FlCiAgICAwMWYzNWI5MSBhNDdlNmRmNiAzNDEzYzVlMSAyZWQwODk5YiBjZDEzMmFjZCA1MGQ5
OTE1MSBiZGM0M2VlNyAzNzU5MmUxNwogICAgcToKICAgIDk2MmVkZGNjIDM2OWNiYThlIGJiMjYw
ZWU2IGI2YTEyNmQ5IDM0NmUzOGM1CiAgICBnOgogICAgNjc4NDcxYjIgN2E5Y2Y0NGUgZTkxYTQ5
YzUgMTQ3ZGIxYTkgYWFmMjQ0ZjAgNWE0MzRkNjQgODY5MzFkMmQgMTQyNzFiOWUKICAgIDM1MDMw
YjcxIGZkNzNkYTE3IDkwNjliMzJlIDI5MzU2MzBlIDFjMjA2MjM1IDRkMGRhMjBhIDZjNDE2ZTUw
IGJlNzk0Y2E0CgogIHk6CiAgICAyNGRmMzg2ZSA3NjcyZmJmNCBiYmE0MWE4OCBkNmEwYmZiMCAx
M2I3OTZiMyAzMzE2OTAxNSA3OTgwMmRkMyAzNjNmYmQ5NgogICAgY2EyOGQzMGUgNjQ3MjlmODUg
NGY1YTA4NDIgY2Y3ZTMwZWUgYjM1NTZlMmQgM2MzMjdjNTEgZGQ1OWRmNDMgZmU1YTZiMmMK
私钥:
c3VuLnNlY3VyaXR5LnByb3ZpZGVyLkRTQVByaXZhdGVLZXlAMjU3ZmE=
明文:
你好我是甲:我的账号是:zhangsan001
乙方_________________________________________
公钥:
U3VuIERTQSBQdWJsaWMgS2V5CiAgICBQYXJhbWV0ZXJzOgogICAgcDoKICAgIGZjYTY4MmNlIDhl
MTJjYWJhIDI2ZWZjY2Y3IDExMGU1MjZkIGIwNzhiMDVlIGRlY2JjZDFlIGI0YTIwOGYzIGFlMTYx
N2FlCiAgICAwMWYzNWI5MSBhNDdlNmRmNiAzNDEzYzVlMSAyZWQwODk5YiBjZDEzMmFjZCA1MGQ5
OTE1MSBiZGM0M2VlNyAzNzU5MmUxNwogICAgcToKICAgIDk2MmVkZGNjIDM2OWNiYThlIGJiMjYw
ZWU2IGI2YTEyNmQ5IDM0NmUzOGM1CiAgICBnOgogICAgNjc4NDcxYjIgN2E5Y2Y0NGUgZTkxYTQ5
YzUgMTQ3ZGIxYTkgYWFmMjQ0ZjAgNWE0MzRkNjQgODY5MzFkMmQgMTQyNzFiOWUKICAgIDM1MDMw
YjcxIGZkNzNkYTE3IDkwNjliMzJlIDI5MzU2MzBlIDFjMjA2MjM1IDRkMGRhMjBhIDZjNDE2ZTUw
IGJlNzk0Y2E0CgogIHk6CiAgICAzNTFjYTY3MSBmN2JjYzFmMSBjYzZmNzI3MSBmZThkYmNmMCA1
MTA3YmM4MSAwYzRhODkyZiAyNTcwYTE5NCBjZjhjODFkZgogICAgYjY1NDA2OGQgMjY4YWJmZDMg
ZDJlZDg0YjMgYTM3MGYyYWMgNzcwYWI1YzYgNGMwZTYzZTIgMjZmNWY3MjkgYTYzMmQ1N2UK
私钥:
c3VuLnNlY3VyaXR5LnByb3ZpZGVyLkRTQVByaXZhdGVLZXlAMmU4YzE=
明文:
你好我是乙:我的账号是:lisi001
步骤__________________________________________
1.甲和乙交换公钥
2.甲用私钥签名明文给乙
3.乙获取到文件后用甲的公钥解密签名
//大白话:DSA签名只是针对人鉴别 不针对内容 也可以吧内容加密把解密方式 也给他人就可以了
就是 张三和李四分贝写了相同的一个工具 他俩分别对文件进行签名
档我收到一样的工具 怎么鉴别是谁写的 呵呵 可以理解为解密完签名 和俩给的公钥一比较 就知道谁的啦