⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.linux

📁 rsa realisation in c++ language
💻 LINUX
字号:
Written by Benjamin Marty (BlueMonkMN@email.com)Copyleft 2003 - distributed under GPL   http://www.fsf.org/copyleft/http://bmrsa.sf.net/This program is an exercise in prime number generation,RSA key generation, RSA encryption and conversion betweendecimal, hexadecimal, base64 and text.  Take note that RSAis generally not used to encrypt entire messages because itis too slow.  It is normally used to encrypt keys used inother encryption algorithms or other relatively smallvalues.  For more detailed documentation, execute bmrsafrom a command line without passing any arguments.  You willprobably want to pipe the output through more like this> bmrsa | more===================== GNU / LINUX ==========================NOTE: I UPDATED BMRSA SOURCE CODE, BUT DO NOT HAVE a LINUX
SYSTEM HANDY SO THE LINUX BMRSA BINARY INCLUDED IN THE
ARCHIVE IS OUT OF DATE.
To build bmrsa:-------------------- Command Line --------------------------# make------------------- Sample Results -------------------------gcc -c bmrsa.cppgcc -c bignum.cppgcc bmrsa.o bignum.o -o bmrsa -lm------------------- End of Results -------------------------To see a demo-------------------- Command Line --------------------------# make demo------------------- Sample Results -------------------------./bmrsa -g 16 -f mykeys.txtGenerating random number:5A180808D022A3FCB51EB50F64DA2A72Testing for prime:119755297702764153679979413525052926579It's evenly divisible by 41Testing for prime:[... lots of details ...]No small prime factors; trying Lehman methodLehman result 0 suggests prime (1)Lehman result 1 suggests prime (1)Lehman result 2 suggests prime (1)Lehman result 3 suggests prime (1)Lehman result 4 suggests prime (1)Lehman result 5 suggests prime (1)Lehman result 6 suggests prime (1)10753822105049858116160862132450630463Appears primeTested 22 numbers before finding a prime. Resorted to Lehman method 3 times.Process took   19.0 seconds.Generating random number:D62C95085E841CB856B4AD6D5A33906E/bin/echo >testfile.txt This is a demonstration message./bmrsa -f mykeys.txt -pu -mit -mo6 <testfile.txt >encrypted.txt./bmrsa -f mykeys.txt -pr -mi6 -mot <encrypted.txtThis is a demonstration message------------------- End of Results -------------------------=============== WINDOWS / VISUAL STUDIO 6/7 ================To build bmrsa (first run vcvars32.bat to set up commandline environment for VC6.0, or open a .NET command prompt):-------------------- Command Line -------------------------->nmake------------------- Sample Results -------------------------Microsoft (R) Program Maintenance Utility Version 7.00.9466Copyright (C) Microsoft Corporation.  All rights reserved.        cl.exe /nologo /ML /Za /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c bignum.cppbignum.cpp        cl.exe /nologo /ML /Za /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c bmrsa.cppbmrsa.cpp        link.exe /nologo /subsystem:console /incremental:no /pdb:"bmrsa.pdb"  /machine:I386 /out:"bmrsa.exe" bignum.obj bmrsa.obj----------------- End of Results -------------------------To see a demo-------------------- Command Line -------------------------->demo.bat--------------(results are similar to Linux)----------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -