CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - string类的方法
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Linux-Unix
Exploit
Scanner
Crack Hack
CA auth
Linux driver
Search - string类的方法 - List
[
OS program
]
cnewstr
DL : 0
一个仿照CString功能的字符串类,CString中大部分的方法都已经实现,并增加了一些使用的字符串操作函数-CString features a replica of the string type, CString most methods have been realized, and to increase the use of a number of string manipulation functions
Date
: 2026-01-01
Size
: 18kb
User
:
xuyangjie
[
OS program
]
5
DL : 0
阿拉伯数字转为大写汉字的类 本人写了一个一个将阿拉伯数字转为大写汉字的类,主要使用了stl中的string类,该类使用方便,还可以自动识别过滤夹杂在阿拉伯数字的逗号,空格等,符合日常习惯中的用法,程序在附件中请检验,使用方法就是main函数中的方法,请检验。如蒙不弃请笑纳。 -Arabic characters into upper class I wrote a one will be converted to uppercase characters Arabic classes, the main use of stl in the string class, the class easy to use, you can also automatically identify filtered mixture of Arabic comma in the air grid and so on, in line with everyday usage habits, the program in the annex, please test main function is to use the method, please test. Please kindly consider it if not abandoned.
Date
: 2026-01-01
Size
: 117kb
User
:
how
[
OS program
]
SimpleXML
DL : 0
简化的XML处理类,能得到XML中元素的值,使用简单。 使用方法:将XML字符串传给本类实例即可,如下所示(Result为XML字符串,可从文件中读出)。 Dim XML As New SimpleXML Dim strName as string XML.Content = Result strName = XML.GetTag("Name") -Simplify XML processing class, to get the values of the elements in the XML, and simple to use. Usage: XML string passed to the class instance you can, as shown below (Result as an XML string, can be read from the file out). Dim XML As New SimpleXML Dim strName as string XML.Content = Result strName = XML.GetTag (" Name" )
Date
: 2026-01-01
Size
: 1kb
User
:
gisnt
[
OS program
]
src
DL : 0
实习三 基于RSA的公钥加密 一、实习目的 1、 理解公钥密码算法,熟悉常有的密码算法:RSA、椭圆曲线密码体制 2、 以RSA加密算法为例,掌握公钥密码算法加解密过程的实现。 二、实习内容 以RSA为例,利用java中的相关类实现对指定字符串的加解密。 1、 生成公钥密钥对 (1)利用java中的KeypairGenerator类创建公钥密钥对,利用KeypairGenerator的静态方法getInstance()获得KeypairGenerator类型的对象,所需参数为加密算法的名称RSA。 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA") (2)利用KeyPairGenerator类的genKeyPair()方法返回生成的密钥对: KeyPair kp = kpg.genKeyPair() (3)返回此密钥对的公钥组件的引用和私钥组件的引用 PublicKey pbkey = kp.getPublic() PrivateKey prkey = kp.getPrivate() (4)将生成的公钥写入文件Skey_RSA_pub.dat FileOutputStream f1 = new FileOutputStream("Skey_RSA_pub.dat") ObjectOutputStream b1 = new ObjectOutputStream(f1) b1.writeObject(pbkey) 用同样的方法将私钥写入文件Skey_RSA_pri.dat -Internship RSA public key encryption based on three An internship purpose An understanding of public key cryptography algorithm, familiar with common cryptographic algorithms: RSA, elliptic curve cryptography 2, RSA encryption algorithm, for example, public key cryptography algorithm to achieve master encryption and decryption process. Second, the practical content In RSA, for example, the use of java in the relevant class implements the specified string encryption and decryption. 1, generates a public key pair (1) the use of java class in KeypairGenerator create a public key pair using KeypairGenerator static method getInstance () to get the object KeypairGenerator type parameters required for the encryption algorithm name RSA. KeyPairGenerator kpg = KeyPairGenerator.getInstance ("RSA") (2) the use of genKeyPair KeyPairGenerator class () method returns the generated key pair: KeyPair kp = kpg.genKeyPair () References (3) Returns the public key component of this key an
Date
: 2026-01-01
Size
: 2kb
User
:
杨平
[
OS program
]
src
DL : 0
实习二 分组密码加密 一、实习目的 1、理解对称加密算法的原理,熟悉常用的对称加密算法:DES、TripleDES、Blowfish; 2、以DESede加密算法为例,掌握分组加密算法加、解密过程的实现。 二、实习内容 1.[基本要求] 以DES/DESede为例,利用java中的相关类实现对指定字符串的加、解密。 2.[实现提示] (1) 可以利用java中的KeyGenerator类创建对称秘钥,利用工厂类KeyGenerator的静态方法getInstance()获得KeyGenerator()类对象; (2) 方法getInstance()的参数为字符串类型,指定加密算法的名称如:Blowfish、DES、DESede、HmacMD5或HmacSHA1等; (3) 利用工厂类Cipher的对象可以创建密码器。同样的,getInstance()的参数为字符串类型,指定加密算法的名称 -Internship two block cipher encryption An internship purpose An understanding of the principles of symmetric encryption algorithms, symmetric encryption algorithms used are familiar: DES, TripleDES, Blowfish 2, DESede encryption algorithm, for example, plus master block encryption algorithm to achieve decryption process. Second, the practical content 1. [Basic requirements] With DES/DESede for example, the use of java in the relevant class implements the specified string encryption and decryption. 2. [Achieve prompt] (1) can be used to create a java class in KeyGenerator symmetric secret key, use the static method getInstance factory class KeyGenerator of () to get KeyGenerator () class object (2) the method getInstance () argument is a string type, specify the name of the encryption algorithm, such as: Blowfish, DES, DESede, HmacMD5 or HmacSHA1 etc. (3) the use of factory class Cipher objects can create a password control. The same, getInstance () argument is a string typ
Date
: 2026-01-01
Size
: 3kb
User
:
杨平
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.