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

📄 rsa.1

📁 这个是RSA加密算法C源程序
💻 1
字号:
.TH RSA 1L.SH TITLErsa, genprim, genrsa, rsaencode, rsadecode \- support RSA message encryption.SH SYNOPSIS\fBrsaencode\fR \fIpublic\fR.br\fBrsadecode\fR \fIsecret\fR.br\fBrsakeys\fR [\fB-l\fR \fIlength\fR] [\fB-P\fR \fIprob\fR] [\fB-s\fR \fIsecret\fR] [\fB-p\fR \fIpublic\fR].br\fBgenprim\fR \fIlength\fR \fIprob\fR.br\fBgenrsa\fR.SH DESCRIPTIONThe RSA programs provide facilities for RSA encryption and decryption of data..B rsaencodeencrypts data supplied on the standard inputand writes the encrypted data to the standard output.It takes as argument.IR public ,the name of a file containing the public RSA encryption keys..B rsadecodedecrypts data supplied on the standard inputand writes the drcrypted data to the standard output.It takes as argument.IR secret ,the name of a file containing the secret RSA encryption keys..B rsakeyscreates two files containing the public and secret keysused for encryption and decryption.By default these are in.B $HOME/.rsapublicand.B $HOME/.rsasecretrespectively, or as specified by the environment variables.B $RSAPUBLICand.B $RSASECRETif set..B rsakeystakes the following options:.TP\fB-l\fR \fIlength\fRThe length of the base primes used to generate the keys, default 10..TP\fB-P\fR \fIprob\fRSpecify that the probability that the base primes are not actually primeshould be 1 in 2^\fIprob\fR, default 1 in 2^20..TP\fB-s\fR \fIsecret\fRSpecify that the secret keys, used for decryption, are to be stored in the file.I secretinstead of the default outlined above..TP\fB-p\fR \fIpublic\fRSpecify that the public keys, used for encryption, are to be stored in the file.I publicinstead of the default outlined above..P.B genprimis used internally by.B rsakeysto generate probable primes for use as seeds to generate keysfor the encryption and decryption processes.It places the prime on the standard output..B genrsatakes two arguments:.TP.I lengthThe length of the prime to be generated..TP.I probSpecify that the probability that the number generated is not actually primeshould be 1 in 2^\fIprob\fR..P.B genrsareads two primes from its standard input, separated by a delimiter,and writes three numbers to its standard output, separated by the same delimiter.The first two numbers constiute the secret keys,the first and third numbers the public key..SH BUGSThe encryption/decryption process seems to pad the decrypted messagewith NULs to a block boundary.Pure RSA encryption is used. I mean, we don't use DES or any other cipher tospeed up the process. This means that the encryption process is slow..SH FILES.TP.B ${RSASECRET-$HOME/.rsasecret}Location of secret keys, used by \fBrsakeys\fR..TP.B ${RSAPUBLIC-$HOME/.rsapublic}Location of public keys, used by \fBrsakeys\fR..SH AUTHORMein Wissen ueber RSA und die anderen verwendeten Verfahren hab ich aus:.nf	Horster, Patrick:	Kryptologie / von Patrick Horster. - Mannheim;	Wien; Zuerich: Bibliographisches Institut, 1985.	    (Reihe Informatik; 47)	    ISBN 3-411-03106-9	NE: GTMartin Nicolay		( martin@trillian.megalon.de )Fliederstr. 234100 Duisburg 1W-Germany.fi

⌨️ 快捷键说明

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