低加密指数广播攻击
原理 e 较小, 模数n和密文c不同,明文m和加密密钥e相同。 有多组n和c,组数k,一般k等于e;
中国剩余定理
当e k 3
有同余式组:
C1 m**e mod n1
C2 m**e mod n2
C3 m**e mod n…
Cola
UNCTF2021 Writeup
Web
fuzz_md5
审计源码,需传入user、pass,user需要“unctf”,pass的md5前5位需要“66666”。
user使用preg_replace,替换unctf为空,但仅替换一次,可使用ununctfctf双写绕过。
$apreg_rep…
1.pub.key 打开之后就是这样的
-----BEGIN PUBLIC KEY-----MDwwDQYJKoZIhvcNAQEBBQADKwAwKAIhAMAzLFxkrkcYL2wch21CM2kQVFpY97/AvKr1rzQczdAgMBAAE-----END PUBLIC KEY-----
2.首先将两个文件复制到Openssl.exe所在文件目录下,然后打开软件openssl分析私钥ÿ…
将android的Base64提取了成了Base64Utils,可兼容java。该模块可加解密字节,加解密字符串并转换成base64或者hex字符串,支持数据分段加密。 /*** Created by yuanfang235 on 2021/8/21.* RSA加密主类*/public class RSAUtils {/*** RSA算法*/p…
RSA 加密原理 步骤说明描述备注1找出质数P 、Q-2计算公共模数N P * Q-3欧拉函数φ(N) (P-1)(Q-1)-4计算公钥E1 < E < φ(N)E的取值必须是整数 E 和 φ(N) 必须是互质数5计算私钥DE * D % φ(N) 1-6加密C = M E mod NC:密文 M:明文7解…
BASE64工具类 /** Copyright (C) 2010 The Android Open Source Project** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at** …
文章归档:https://www.yuque.com/u27599042/coding_star/cl4dl599pdmtllw1 依赖
import JSEncrypt from ‘jsencrypt’
pnpm i jsencryptimport {stringIsNull} from “/utils/string_utils.js”:https://www.yuque.com/u27599042/coding_star/slncupw…