Tuesday, July 14, 2009
OpenSSO and Agent Installation
Here is my blog post about OpenSSO and Agent Installation in Glassfish: http://blogs.sun.com/vijayanand/entry/opensso_and_agent_installation_in
Monday, July 13, 2009
Calculate Cipher Size
Calculating Cipher Size for Symmetric algo.:
If you are using "DES/CBC/PKCS5Padding" cipher instance, and using cipher api like:
If you are using "DES/CBC/PKCS5Padding" cipher instance, and using cipher api like:
int doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
you may want to think about what cipher text size calculation should be used for this. Because the output byte require a fixed length before encrypt/decrypt.
Solution: If plain text size is x and Encryption block size is y then
Size of CipherText = x + y - (x mod y)
The resulting ciphertext size is computed as the size of the plaintext extended to the next block. If padding is used and the size of the plaintext is an exact multiple of the block size, one extra block containing padding information will be added.
Source: http://www.obviex.com/Articles/CiphertextSize.aspx
Tuesday, July 07, 2009
Fedora Linux Essential
Fedora Linux Essentials:
> You can open a terminal from the current directory (from GUI for browsing folders). "Open terminal here" Nautilius script:
http://www.cyberciti.biz/faq/linux-gnome-open-terminal-shell-prompt-here/
> Given a rpm file, can do Local install without checking for dependencies.
yum localinstall --nogpgcheck .rpm
> Power saving mode in linux:
http://lesswatts.org/tips/wireless.php#pm
http://lesswatts.org/tips/wireless.php#bt
> 64bit flash for linux:
http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz
> Nero for linux
http://www.brothersoft.com/d.php?soft_id=59627&url=http%3A%2F%2Ffiles.brothersoft.com%2Fdvd_video%2Fdvd_burner%2Fneroforlinux3.zip
> Fedora wireless for dell inspiron 1525: http://www.cenolan.com/2008/11/rpm-install-broadcom-wireless-sta-driver-fedora/
> Audio packages:
yum install ffmpeg ffmpeg-libs ffmpeg2theora gstreamer-ffmpeg
http://techchorus.net/index.php?q=how-play-music-and-video-fedora-10
> Synchronize date from terminal: ntpdate 0.pool.ntp.org
> Enabling root login for fedora:
Edit /etc/pam.d/gdm file as root user and comment the below line
#auth required pam_succeed_if.so user != root quiet
> Install adobe reader in fedora:
yum install AdobeReader_enu.i486
> set proxy:
For convenience, put this line in a file, say "/usr/bin/setproxy" and do
chmod +x /usr/bin/setproxy
Next time you set this with command "setproxy"
> You can open a terminal from the current directory (from GUI for browsing folders). "Open terminal here" Nautilius script:
http://www.cyberciti.biz/faq/linux-gnome-open-terminal-shell-prompt-here/
> Given a rpm file, can do Local install without checking for dependencies.
yum localinstall --nogpgcheck
> Power saving mode in linux:
http://lesswatts.org/tips/wireless.php#pm
http://lesswatts.org/tips/wireless.php#bt
> 64bit flash for linux:
http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz
> Nero for linux
http://www.brothersoft.com/d.php?soft_id=59627&url=http%3A%2F%2Ffiles.brothersoft.com%2Fdvd_video%2Fdvd_burner%2Fneroforlinux3.zip
> Fedora wireless for dell inspiron 1525: http://www.cenolan.com/2008/11/rpm-install-broadcom-wireless-sta-driver-fedora/
> Audio packages:
yum install ffmpeg ffmpeg-libs ffmpeg2theora gstreamer-ffmpeg
http://techchorus.net/index.php?q=how-play-music-and-video-fedora-10
> Synchronize date from terminal: ntpdate 0.pool.ntp.org
> Enabling root login for fedora:
Edit /etc/pam.d/gdm file as root user and comment the below line
#auth required pam_succeed_if.so user != root quiet
> Install adobe reader in fedora:
yum install AdobeReader_enu.i486
> set proxy:
For convenience, put this line in a file, say "/usr/bin/setproxy" and do
chmod +x /usr/bin/setproxy
Next time you set this with command "setproxy"
Subscribe to:
Posts (Atom)