Linux/Unix style crypt() in Java

Hello,
Is there any API for java to do a crypt() that also can be used in Linux/Unix ?
For example, in Linux/Unix, the password file is create with the "crypt", how can I create this kind of password within Java ?

I Googled on "unix crypt". The following was on the first page of results. (note that I hadn't even specified "java" in my search criteria):
http://www.dynamic.net.au/christos/crypt/
Grant

Similar Messages

  • Java ME SDK 3.x for Linux/Unix

    Hi!
    There was talk the last couple of years of a Linux/Unix release for the Java ME SDK 3.x,
    but as of today I see nothing like that at the download site.
    Does anybody know the state of this?
    A Linux/Unix SDK would be very helpful to me in my development work!
    (This is a ping to users, who themselves are Oracle Product Development personnel!)

    Yes, a real need for many developers.
    cherrs

  • Mount a directory like WEBDEV in windows in Linux/Unix

    I want to access the Files from a linux/Unix machine through a simple thick client . Is it possible to
    mount a directory like WEBDEV in windows in Linux/Unix.

    Here is a java based client that I've used. Just use the http://<hostname@doamin>/files/content for access to your files.
    http://www.ics.uci.edu/~webdav/

  • Start Java application at system start up linux/unix

    Hi,
    I am working on a application, which needs to run as a background process in linux/unix without the intervention of the user.
    Please give me the details procedure how to make it as background process.
    thanks

    you can make any process a background process by adding an amperstand
    for example:
    java -cp $MyClassPath myAppClass &
    If you want to run it automatically at startup
    you'll have to write a little script which is executed at startup
    and contains a line as above.
    The scripts exectuted at startup are usually located at
    /etc/init.d
    You can use one of those scripts as starting point for your own script.

  • Please package Java ME SDK 3.0 for Linux/Unix

    Hi Oracle guys!
    Please package Java ME SDK 3.0 for Linux/Unix soon!
    It would be of benefit both to us developers, and to Oracle.
    Thanks!

    user8771084 wrote:
    Señores Oracle si ustedes no pueden desarrollar Java ME SDK 3.0 for Linux/Unix no importa!!!, igual sabemos que no están a la altura de Sun Microsystems ni de la comunidad de Linux/GNU.
    Si ustedes se deciden lanzar la versión Java ME SDK 3.0 for Linux/Unix se lo agradeceremos, recuerde que Linux/GNU dia a dia crece mas y mas, y es un mercado que se debe cuidar.Translated to English:
    Oracle Gentlemen if you can not develop Java ME SDK 3.0 for Linux / Unix does not matter!,
    As we know are not up to Sun Microsystems or the community of Linux / GNU.
    If you decide to launch the Java ME SDK 3.0 for Linux / Unix appreciate it, remember that GNU / Linux is growing day by day more and more, and is a market that needs to be nurtured.

  • How to execute Java.exe on MAC, LINUX, UNIX...

    okay, I know this is very stupid, but can anybody tell me how to run Java.exe on MAC, LINUX, UNIX?
    I know how to run it from windows, I have a batch file created in windows, will it work on MAC, LINUX and UNIX as well? (I'm not sure if on other OS, there is such a file type call *.bat)

    See what I mean about probably wanting a beginner's book on Unix and/or shell scripting?
    okay crackers, the only thing that I have to do is put
    in the name of my program into "your program here".Not necessarily. There's the ClassPath, program parameters, etc. What you need to put in the "your program here" depends upon your program. What I did was allow the script to be invoked with command-line parameters and you could (depending upon your program) put "-jar myjar.jar" in the indicated spot, if your JAR file was runnable.
    The rest no need to change. right?I don't know. What does your program need? Only you can answer that, not me. I just furnished an example.

  • PrintWriter has started to use unix style linebreaks.

    Hello,
    I was running some text files generated under linux through a my Java program under Windows XP. Ever since then any program I write or run in Windows that uses PrintWriter will print to a file using unix style line breaks, ie. if I look at it in notepad everything appears on one line with little squares instead of line breaks. Does anyone know why Java won't use the dos line breaks anymore ?
    I remember seeing someone else who had this problem but I never found out if and how they fixed it !

    All I'm doing is putting a string into PrintWriter.println():
    String fred = "Hello !";
    String jim = "Wheee !";
    PrintWriter out = null;
    try
    out = new PrintWriter(new FileOutputStream("Stuff.txt"));
    catch (Exception x)
    System.out.println("Could not open the file Stuff.txt.");     
    return;
    out.println(fred);
    out.println(jim);The file then contains
    HelloWhee !
    with a unix line break between the Hello and Whee !
    This was not happening untill I ran a file with all unix line breaks through the program. The code did not change. Recompiling made no difference. Now ALL programs that us PrintWriter are doing this.

  • Unix style commandos in perl script OEM agent 10.2.05

    Hi,
    Is it possible to execute unix style command's like ps on a Windows server? Looking at the perl scripts in $OEM_AGENT/sysman/emd/scripts I see unix style command's. Is OEM converting those command's to Windows equivalents?
    I've a perl script which has to be run against Linux and Windows servers and I'm hoping the agent will execute those Unix command (it is only a ps command) on a Windows machine.
    regards,
    Ivan

    Ivan,
    Have you considered using Cygwin?
    http://www.cygwin.com
    Regards,
    - Loc

  • Is any1 using linux/unix OS?

    hey..this is totally unrelated to java, but im using a linux/unix computer and want to know the command line to get a windows interface window up, rather than the grey screen with the xterm window only...
    can some1 please help.....
    thnx
    lee

    I dont know in linux but in AIX/HP-UX it is dtterm/aixterm

  • UNIX style paths on Mac OS X

    The javadoc for com.adobe.ids.links.LinkOperations.getFilePath() says "Returns: The file path (colon delimited on the Mac OS). (String or File)". This means that when running on OS X I get paths like "Macintosh HD:Users:francis:Code:Bright:bluebooks:trunk:testdata:glacier.jpg", which aren't very useful when working in Java because they aren't what the Java APIs expect. For example, new java.io.File(link.getFilePath()).getName() won't work because java.io.File expects UNIX style (slash-delimited) file paths.
    Is there any way of getting the linked file path as a UNIX path? Or is there a method in the InDesign API that will convert colon-delimited paths to UNIX-style paths?
    Thanks,
    Francis

    yeah, this is interesting.... I'm actually connected to our university with VPN now and I wonder what the path would be for that sort of "generic" dfs folder - i'm experimenting...
    It does make it look like it's possible...however I keep reading that mac os x's samba doesn't recognize dfs paths.
    I've been able to bind the computers to Active Directory - that's not an issue and SMB is checked - but the dfs paths return an error - I can connect using the old UNC path - but that's not where the drives actually are/will be anymore.

  • Running a Unix Script through a Java Program

    Hi !!!!!!!!! Can anybody plz suggest me an approach for the following queries -
    1.  How to execute a unix script through a java program ?
      2.  How to send the o/p of the script to a java program so that it can be used .

    import java.io.*;
    public RunScript
       public static void main(String args[])
          try
              Process p = Runtime.getRuntime().exec("script.sh");
              BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));     
              while ((line = input.readLine()) != null)
                 System.out.println(line);
              input.close();
          catch(Exception e)
              e.printStackTrace();

  • How to execute unix command from the Java program running on Windows

    Hello,
    I need to
    1. Execute a unix shell script from a Java program running on the Windows.
    2. I also need to capture the output of this shell script in my program.
    Please suggest me how to achieve this.
    Thanks in Advance.

    Hi...
    Something is missing here
    If you want to execute a shell script in windows that not posible unless you find or develop a unix shell script parser for windows.
    But if you are trying the execute a unix shell script on a remote unix computer from your java program running on a windows platform you can do that by logging on to the UNIX terminal which is running on port 23 I think.
    You can test this using telnet tool on windows
    just type on command prompt
    telnet <ip of the unix pc> <port number this case 23>
    you should get the unix terminal. If that works you can do the same through java or you can directly conect to port 23 of that pc using sockets that way your program will be platform independant

  • Upper case file name in linux/unix env

      Hi All,
    Can anyone please let me know if it is possible to generate pdf names in capital in linux/unix env?? I am able to generate it fine in windows but it always generates in  lower in unix.
    Thanks.

    No, all files used or produced by Documaker on unix platforms will be lower case. Of course, there's nothing to prevent you from renaming the PDF file after it is produced.

  • Monitor Unix Mail Queue using java

    Hi! ,
    I want to monitor unix mail queue using java. how can i proceed..
    Please advice..
    Thanks..
    Ganesh

    Google and see if there is an API which lets you monitor it.
    Kaj

  • ORACLE_HOME of 11g on Linux/Unix

    Hi,
    is default ORACLE_HOME of 11g on Linux/Unix as follows :
    /softwares/app/Administrator/product/11.1.0/db_1
    Thanks and regards.

    user522961 wrote:
    Hi,
    is default ORACLE_HOME of 11g on Linux/Unix as follows :
    /softwares/app/Administrator/product/11.1.0/db_1
    Thanks and regards.ORACLE_HOME based on ORACLE_BASE - in your case you set ORACLE_BASE=softwares/app/Administrator/ and OUI selected ORACLE_HOME as /softwares/app/Administrator/product/11.1.0/db_1

Maybe you are looking for

  • Creating a Calendar View using alternative date fields

    I have a Sharepoint 2007 calendar list that includes the standard Start and End Date fields.  I also have "Suggested Start Date" and "Suggested End Date" fields that are utilized by users to recommend the Start and End Dates for the event. I can crea

  • Elastic layout and centering

    I have a elastic layout with just one column. The main content container has a centered background (which consists of a two vertical colored bands, with the transition in the middle of the page). Padding and margins for body and container are zero. T

  • All of a sudden I'm having trouble with Citibank email accepting my emails.Claims no odd characters allowed.

    Just recently, when trying to send an Email via my Citibank website, despite ordinary punctuation, I keep getting the message "Please re-enter your message and limit use of special characters or symbols, such as : _ / & (hyphens, forward or backslash

  • Serializable interface

    I have a dount about with Serializable Serializable interface does not have any methods or varialbles, then how can a class be serialized just by implementing Serializable interface. What is happening internally in Java to make this. Pls clear my dou

  • Can I use the Airport Express as a cable modem?

    I am trying to set up wireless internet in my home, and I am planning to purchase an Airport Express. Can I use the Airport Express as a cable modem, or do I have to purchase a modem from the ISP and then connect the AE to the output of the cable mod