Custom Search

News World

Oct 14, 2008

Encryption - RSA Encrypt and Decrypt Strings

RSA Encrypt and Decrypt Strings
Dim rsa As New Chilkat.Rsa()
Dim success As Boolean
success = rsa.UnlockComponent("Anything for 30-day trial")
If (success <> true) Then
MsgBox("RSA component unlock failed")
Exit Sub
End If

' This example also generates the public and private
' keys to be used in the RSA encryption.
' Normally, you would generate a key pair once,
' and distribute the public key to your partner.
' Anything encrypted with the public key can be
' decrypted with the private key. The reverse is
' also true: anything encrypted using the private
' key can be decrypted using the public key.
' Generate a 1024-bit key. Chilkat RSA supports
' key sizes ranging from 512 bits to 16384 bits.

success = rsa.GenerateKey(1024)

If (success <> true) Then
MsgBox(rsa.LastErrorText)
Exit Sub
End If

' Keys are exported in XML format:
Dim publicKey As String
publicKey = rsa.ExportPublicKey()
Dim privateKey As String
privateKey = rsa.ExportPrivateKey()


Dim plainText As String
plainText = "Encrypting and decrypting should be easy!"

' Start with a new RSA object to demonstrate that all we' need are the keys previously exported:
Dim rsaEncryptor As New Chilkat.Rsa()

' Encrypted output is always binary. In this case, we want
' to encode the encrypted bytes in a printable string.
' Our choices are "hex", "base64", "url", "quoted-printable".

rsaEncryptor.EncodingMode = "hex"

' We'll encrypt with the public key and decrypt with the private
' key. It's also possible to do the reverse.
rsaEncryptor.ImportPublicKey(publicKey)
Dim usePrivateKey As Boolean
usePrivateKey = false
Dim encryptedStr As String
encryptedStr = rsaEncryptor.EncryptStringENC(plainText,usePrivateKey)
TextBox1.Text = TextBox1.Text & encryptedStr & vbCrLf
TextBox1.Refresh()

' Now decrypt:
Dim rsaDecryptor As New Chilkat.Rsa()
rsaDecryptor.EncodingMode = "hex"
rsaDecryptor.ImportPrivateKey(privateKey)
usePrivateKey = true
Dim decryptedStr As String
decryptedStr = rsaDecryptor.DecryptStringENC(encryptedStr,usePrivateKey)
TextBox1.Text = TextBox1.Text & decryptedStr & vbCrLf
TextBox1.Refresh()



http://www.example-code.com/vbdotnet/rsa_encryptStrings.asp

Encryption and Smart Card Technology Leaders Develop Identifier-Based Encryption for Portable Formats

Researchers from HP Laboratories and STMicroelectronics have collaborated with card manufacturer Incard to develop technology for the implementation of Identifier-Based Encryption (IBE) on smart cards. A demonstration of this technology will be presented on the Hewlett-Packard booth at ‘Infosecurity 2005’ from April 26-28, 2005, in London.


Smart cards are not only powerful and convenient; they are proven as outstanding carriers for confidential information such as private keys. By implementing IBE on a smart card, developers can create more practical and cost-effective online and offline secure business communication applications. Applications for the technology are in the areas of e-government, e- and m-commerce, wireless management of secure documents, access control, and personal-authorization tokens.
IBE has certain advantages over public-key infrastructure (PKI) security schemes. In classical PKI schemes, the public key is a randomly calculated number that has to be linked to the identity of the user by a certificate. With IBE the public key can be chosen freely and can be linked directly to the user’s identity or role without the need to exchange certificates and the costly infrastructure that comes with it.


The three partners have implemented IBE on a smart card by using elliptic-curve pairing functions, which are important cryptographic primitives. IBE uses bilinear mapping on elliptic curves to obtain an algorithm that can be used to turn a simple, well recognized identity or role into a public/private key pair. This role-based encryption allows for one party in the communication (e.g. the receiver) to dynamically change the link between the identity and the role of the user without impacting the other party (e.g. the sender).


HP Labs Bristol has one of the world’s leading research groups in IBE, which has the advantage of being more easily scalable than other PKI technologies. As a result it has numerous possible applications, including smart card security.


The algorithmic calculations were developed by HP Labs and ST and implemented by Incard R&D on JsEC, an Incard smart card JavaCard 2.2.1 platform, based on ST’s ST22L128 chip. JsEC decrypts an IBE message in a few seconds. Incard has already integrated a JsEC smart card into a software application to show how IBE can complement the security offering of PKI schemes in business applications and environments.


“HP Labs has been investigating IBE cryptography for some years and are impressed with its potential,” said Keith Harrison, senior cryptographic researcher at HP Labs Bristol. “We are developing a number of applications, including a new HP ProtectTools security product, which would be difficult to implement with alternate forms of public-key cryptography. Working with our colleagues at STMicroelectronics on this prototype smart card solution has emphasized the complementary strengths of both research groups.”


”Incard’s eSecurity product ‘JsEC’ aims to conquer a highly specialized market that is expected to expand quickly,” said Alessandro Scognamiglio, Incard’s Strategic Marketing Manager. “JsEC is the right solution to guarantee secure Internet transactions and communications. It clearly and easily manages different operations such as authentications, certifications, e-signatures, and other functions able to guarantee net and local security. Through a dynamic integration with the Windows operating system, JsEC enables the user to provide their signature and authenticate themselves simply by clicking the mouse.”


“STMicroelectronics has a long history of devoting enormous efforts to its R&D to ensure that new technologies can be exploited in commercial products as quickly as possible; this cooperation between HPLabs and ST researchers is an excellent example of that tradition,” said Alessandro Cremonesi, Vice President, Advanced System Technology, STMicroelectronics. “ST believes that making security implementations that are significantly cheaper, faster, more convenient, and more reliable is absolutely vital to meet the needs of the market. Additionally, this implementation by Incard, based on ST’s advanced and innovative ST22 SmartJTM silicon platform, demonstrates that the 32-bit ST22 range of smart card ICs provides a perfect medium to carry any encryption algorithms.”


more : http://www.physorg.com/news3872.html

SmartCard - RFID SmartCard encryption cracked by researchers

New research that shows smart cards with encrypted RFID chips might not be as secure as previously thought is raising concerns in Boston, where the subway CharlieCards use just such technology. The research raises the specter of thieves with $1,000 worth of equipment cracking smart card encryption and making counterfeit cards to do everything from swipe fares to gain access to high-security areas.
Although University of Virginia student Karsen Nohl and colleagues revealed their findings in December at a conference, a couple of Boston-area media outlets (Boston Herald, Boston Globe ) picked up on the story this week, breathing new life into it. The MBTA, the outfit running the Boston subway system, declined to discuss its security technologies with the Boston newspapers.
The particular RFID chip in question – the Mifare Classic, of which a billion-plus have been sold – is made by Philips spinoff NXP Semiconductors, which has been widely quoted saying that only a portion of the cryptographic algorithm has been obtained by the researchers. (The researchers have not fully disclosed their method in an effort to keep those with bad intentions from copying them.) Security experts have known all along that such chips, which generally cost less than a dollar, were crackable, but didn’t realize it could be so economically feasible.


"People have and will, as we have, taken security expertise from the world of computers and applied it to RFIDs, whose designers had been operating under the assumption that their world was apart from such scrutiny," Nohl said in a statement .


Nohl and colleagues were able to listen to data broadcast by the chips using readily available RFID readers and then dissected the layers of the chip via custom optical recognition software to deduce the algorithm and encryption keys.



By Alpha Doggs on Thu, 03/06/2008 - 12:30pm. http://www.networkworld.com/community/node/25754

Lamp - Arrowslim T5

Arrowslim has evolved to offer a T5 version with an enhanced aesthetic appearance and many new additions to the range


· Now available in single and twin lamp variants, extending application possibilities
· Arrowslim T5 (T16) connect version available for fast continuous mounting installation
· Three-position rotating lampholder provides maximum mounting flexibility for single lamp versions
· Diffuser and reflector attachments available to enhance lighting performance
· Suitable for industrial, retail, commercial office and education applications
· Also available in Connect versions providing a quick simple and effective solution for interconnecting a number of battens



Installation/Mounting

Suitable for walls, ceilings or in the recessed areas. Three position rotating lampholders allows lamp to be located either side of the spine. Suitable for normal interiors with temperature range -15°C to 25°C High Frequency. For easy installation use BESA box brackets. For Connect version: Fix and connect first luminaire then simply plug in and fix subsequent luminaries. Use intermediate connectors to feed other rows up to 10A maximum.
Cover plates and reflector attachments retained by plastic spring latches.


Specification

Slim single or twin lamp fluorescent batten for 14/21/28/ 35/49/54/80W, T5 (T16) linear fluorescent lamps, with connect
version and optional diffuser and attachments.
As Thorn Arrowslim T5.



Materials/Finish

Spine: steel, white enamel finish (RAL 9010) Lampholder: polycarbonate, white finish Diffuser: clear reeded polycarbonate, clear reeded acrylic and satin polycarbonate Reflector: steel, white enamel finish (RAL 9010)

more : www.thorn.com.hk

IT Conversations

Moneycontrol Latest News

Latest new pages on Computer Hope

Latest from Infoworld

Door Lock

Door Lock Import Top Door Lock from China Contact Quality Manufacturers Now