postheadericon Example of command line argument in C on Linux

args.c

#include "stdio.h"
void main(int c, char *argv[])
{
    int i;
    for(i=0;i<c;i++)
    {
        printf("\nargument[%d] : %s",i,argv[i]);    
    }
}

postheadericon Example of command line argument in Java

args.java

public class args
{
public static void main(String args[])
{
for(int i=0;i<args.length;i++)
{
System.out.println("argument[ "+i+" ] : "+args[i]);
}
}
}

postheadericon AES with CBC mode example in Java

AESCBC.java

package bsr;
import java.security.*;
import javax.crypto.*;
import javax.crypto.spec.*;
class AESCBC
{
public KeyGenerator keygenerator;
public SecretKey myDesKey;
Cipher c;
public IvParameterSpec iv;
public AESCBC() throws Exception
{

postheadericon AES with CFM mode example in Java

AESCFM.java

package bsr;
import java.security.*;
import javax.crypto.*;
import javax.crypto.spec.*;
class AESCFM
{
public KeyGenerator keygenerator;
public SecretKey myDesKey;
Cipher c;
public IvParameterSpec iv;
public AESCFM() throws Exception
{

postheadericon AES with ECB mode example in Java

AESECB.java

package bsr;
import java.security.*;
import javax.crypto.*;
import javax.crypto.spec.*;
class AESECB
{
public KeyGenerator keygenerator;
public SecretKey myDesKey;
Cipher c;
public AESECB() throws Exception
{

Total Pageviews

© BipinRupadiya.com. Powered by Blogger.