How can I generate random password

Hello...
I use oracle 10g for windows,,,I have an employee table , there are a lot of colunms , their names are employee_name , employee_id ,employee_pass .....
employee_pass colunm is empty
I want to generate random password for employee_pass colunm
How can I generate random password for employee_pass colunm
thanks
omer faruk akyuzlu
in Turkey

SQL>  exec dbms_random.seed(to_char(sysdate, 'sssss'))
PL/SQL procedure successfully completed.
SQL> select dbms_random.string('X', 8) from dual
  2  /
DBMS_RANDOM.STRING('X',8)
4YT1H150
SQL> select dbms_random.string('X', 8) from dual
  2  /
DBMS_RANDOM.STRING('X',8)
WIA3QCIP
SQL> Please be aware that storing the actual passwords in a the EMPLOYEES table is a very bad idea. Oracle has a pretty good password implementation. It's not perfect but it's a darn site better than hand-rolling our own.
Cheers, APC

Similar Messages

  • How to create a javabean that generate random password?

    May i know how to create a javabean that can generate random password?
    that include character and string
    and length of 10.

    i created a class file for my java bean
    package autogenerate;
    import java.util.*;
    public class GeneratePwId
    private int MemId;
    private String Passwd;
    public GeneratePwId(){}
    public String getPasswd()
    return this.Passwd;
    public void setPasswd()
    char[] letters = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
    'J', 'K', 'L', 'M', 'N', 'P', 'R', 'T',
    'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c',
    'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
    'm', 'n', 'p', 'q', 'r', 's', 't', 'u',
    'v', 'w', 'x', 'y', 'z', '0', '1', '2',
    '3', '4', '5', '6', '7', '8', '9' } ;
    String pwd = "" ;
    while( pwd.length() < 10 )
    pwd += letters[ (int)( Math.random() * letters.length ) ] ;
    this.Passwd = pwd;
    i successfully compile my java file. and try to test it by writing a jsp file.
    here is my jsp code
    <html>
    <head>
    <title>
    Try retrieving password
    </title>
    </head>
    <body>
    <jsp:useBean class"autogenerate.GeneratePwId" id="bean0" scope="page"/>
    <%=bean0.getPasswd()%>
    </body>
    </html>
    but i encounter this error
    org.apache.jasper.compiler.ParseException: /jsp/GetPasswd.jsp(7,18) Attribute class has no value
    anyone can teach me how to solve this problem?
    thanks a alot!

  • How to generate random password as per password policy by knowing the resou

    Hi,
    Any body tell me, how to generate random password as per password policy by knowing the resource object in OIM11g
    Regards,
    Nishith Nayan

    Hi Nayan,
    You can try below code snippet:
    UserRepository ur = new DBUserRepository();
    UserInfo user = ur.getUserInfo(userKey);     
                   ResourceRepository rrepo = new ResourceDBRepository();
                   Resource resource = rrepo.findResource(resourceName);
                   PasswordPolicyAssignmentsRepository par = new PasswordPolicyAssignmentsDBRepository();
                   PasswordPolicyRepository ppr = new DBPasswordPolicyRepository();               
                   List passwordPolicyAssignments = par.getPasswordPolicyAssigments(resource);     
                   PasswordPolicy passwordPolicy;     
                                            PasswordPolicyAssignment passwordPolicyAssignment = (PasswordPolicyAssignment) passwordPolicyAssignments.get(0);
                             if (isApplicable(passwordPolicyAssignment, getMappedAttributes(userInfo.getAttributes()))) {                            
                                  passwordPolicy = ppr.find(passwordPolicyAssignment.getPasswordPolicyID());                    
                                                 RandomPasswordGeneratorImpl rpg = new RandomPasswordGeneratorImpl();
                             password = rpg.generatePassword(userInfo, passwordPolicy);
    regards,
    gyan

  • Hello.  I have an old G4 Tower at 10.4.11.  The password for Keychain has been lost.  How can I generate a new password for Keychain?  Every time I use Safari it want me to enter the password.  Any suggestions?  Thank you

    Hello.  I have an old G4 Tower at 10.4.11.  The password for Keychain has been lost.  How can I generate a new password for Keychain?  Every time I use Safari it wants me to enter the keychain password.  Any suggestions?  Thank you

    See if this helps...
    Open Keychain Access in Utilities, use Keychain First Aid under the Keychain Menu item, then either check the Password under that item, change it, or delete it and start over.
    Keychain Access asks for keychain "login" after changing login password...
    http://support.apple.com/kb/HT1631
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544

  • How to generate random password

    Hi Experts,
    i using some cmdlets to generate random password.
    $ascii=$NULL;
    For ($a=97;($a –le 122);$a++) {$ascii+=,[char][byte]$a }
    $No_of_password  = 6
    $length_of_password = 10
    $TempPassword=$NULL     # To store single password
    $Morepassword=@()  # Variable to 'X' no. of passwords
     for ($lp=0; $lp -le $count; $lp++ )
    For ($loop=1; $loop –le $length; $loop++)
        $TempPassword+=($ascii | GET-RANDOM)   # this generate the random password
    $morepassword[$lp]= $TempPassword 
    $morepassword    # This should give the all random password
    Output is like --- 
    =zM;HFuElY
    =zM;HFuElYp88<kqTOVM
    =zM;HFuElYp88<kqTOVMfS1xR01VzY
    =zM;HFuElYp88<kqTOVMfS1xR01VzY4<$wG%Z>ft
    =zM;HFuElYp88<kqTOVMfS1xR01VzY4<$wG%Z>ft=a&ME7>&3T
    =zM;HFuElYp88<kqTOVMfS1xR01VzY4<$wG%Z>ft=a&ME7>&3T$98v$b>jSU
    This is not required output. It should give the output like
    =zM;HFuElY
    p88<kqTOVM
    fS1xR01VzY
    4<$wG%Z>ft
    =a&ME7>&3T
    $98v$b>jSU
    Total 6 passwords with a length of 10
    How do create a array like this ?

    I agree with Fred but here i shwo to manage two loops with PowerShell.
    $pwdchars=33..122|%{[char]$_}
    1..6|
    ForEach-Object{
    $pwd=''
    1..10 |
    ForEach-Object{
    $pwd+=$pwdchars | GET-RANDOM
    $pwd
    It is usually always better to write less code and to use the code correctly.  YOu have guessed at mmost of the code but have not used consistent variables.  My guess is that you have tried to modify somecode you found.  Look at this code
    to see how easy it is to build loops in PowerShell
    ¯\_(ツ)_/¯

  • How can multiple users save passwords securely on a shared computer

    there are three people in my house that all use the same laptop to access the internet and have all been using the save passwords feature... i have just discovered that in the security preference any of us can see the others passwords. the only way i can see of hiding this is with a master password but as we would all need to know the master password that wouldnt really work. how can i hide everyones passwords from everyone else?

    You would have to run separate profiles.
    This article explains how it works: [[Managing profiles]]

  • My old email account was disabled and I can't remember my password - how can I reset my password or move $ to a new itunes/email account?  It seems I must have mis-typed my information because I can't answer the security questions correctly...

    My old email account is disabled and I can't remember my itunes password - how can I reset my password or move $ to a new itunes/email account?  It seems I must have mis-typed my account information because I can't answer the security questions correctly...

    ➡ https://iforgot.apple.com/

  • How can I Generate two different reports from single execution of Test cases in NI teststand

    Hi,
    My requirement is to generate two different reports from NI teststand. One for the Logging of error descriptions and the other report is by default generated by the Teststand. How can i generate a txt file that contains error descriptions other than that mentioned in the default report?
    Solved!
    Go to Solution.

    Do you need to do that just for these two sequences but not for other sequences? I don't see a problem to use SequenceFilePostStepRuntimeError. Create this callback in both sequence files and configure them to log into the same file. SequenceFilePostStepRuntimeError callback is called after each step of the sequence file if it has runtime error. You can access the calling step error information via RunState.Caller.Step.Result.Error property. Take a look to attached example.
    The "other way" is useful if you need to log errors not for every step of the sequence file, but for some of them. This is more complex, because you need to create a custom step types for these steps. For the custom step you can create substeps (post-step in your case) which will be executed every time after step of this type executed. Then, this is you job to determine if error happened in the step, acces to step's error information is via Step.Result.Error property. 
    Also, be aware that step's post-expression is not executed in case of error in the step.
    Sergey Kolbunov
    CLA, CTD
    Attachments:
    SequenceFilePostStepRuntimeError_Demo.seq ‏7 KB

  • How can I change the password in the iBook donated to our nonprofit.  No password was given with the iBook?  We need to put in printer and other software.  Help, we can use the laptop without changing the password.

      How can we change the password in the iBook donated to our nonprofit?  No password was given with the iBook and every time we try to install items, the password window pops up.  We need to put in printer and other software.  Help! We can use the laptop without changing the password.

    If you did not get an OS X install-restore DVD with the computer you may need
    to buy one from somewhere, and you may be lucky to get a retail OS X 10.5.x
    version. The original grey-label install set of software and OS X it shipped with
    likely would be an older system than Leopard 10.5. Last versions of G4 Mac, &
    G5, shipped with a Tiger 10.4 system; so did early Intel-based Mac. Grey discs
    which accompanied other computer build models generally do not interchange.
    The last OS X version a PowerPC architecture can use, if supported, is 10.5.8.
    A PPC processor at 867MHz & faster should be able to run OS X 10.5 Leopard.
    {With the correct disc installer, you can use it to change a password and other
    things including re-install, and perform disk utility functions, etc.}
    There is a chance you may be able to get a white-label Replacement 10.4 DVD
    or Replacement 10.5 DVD from AppleCare or the online Apple Store (800myapple)
    from a Mac OS X system specialist; these have been available yet hard to get
    as not all persons involved with them seem to know if they still exist until someone
    is asking. These aren't retail stock, are special discs for computers who could use
    a system later than original old discs; these are complete install discs not for one
    specific series of Mac. Generally they'd work in supported PowerPC G4/G5; but
    do not replace specialized original install DVD, such as an early Intel mac requires.
    You'd need to have a serial number of the computer, and a method of payment
    when seeking some replacement system media from Applecare or Apple sales
    and these discs are not available in a retail store. The original Retail discs are
    labeled differently and shipped in a retail box with a big X on the front. Other
    sources for retail 10.4 Tiger or 10.5 Leopard may be online via amazon sellers
    or computer resellers who handle repaired Macs. Avoid mystery grey label ones
    that were intended to be sold and kept with their original computer kits.
    Good luck!

  • I have a wi fi network which is bell675, it is asking me for a password but i don't know it, how can i get a password

    how can i get a password for wi fi network BELL675

    There's no way anyone here will know the password to that network. If this is your own home network, the password would be whatever you set up on the WiFi router. If you've forgotten it, you'll have to reset the router. Consult the router documentation. If this is a commercial WiFi network you're trying to access, contact whoever runs the network.
    Regards.

  • I forgot My iCloud password, and i can not reset it as the system is not accepting the answer to the security questions and also the mail to my apple ID mail box is blocked, how can i reset my password for my apple ID.

    I forgot My iCloud password, and i can not reset it as the system is not accepting the answer to the security questions and also the mail to my apple ID mail box is blocked, how can i reset my password for my apple ID.

    Hello nmssns,
    Thank you for contacting Apple Support Communities.
    You can start with this article to reset your iCloud password. Depending on your exact circumstances, blocked email, forgot security questions, etc., there are links provided to guide you through those issues.
    About Apple ID security questions
    http://support.apple.com/kb/HT5665
    Regards,
    Jeff D.

  • How can I find my password for iTunes?  Forgot it and can't see how to restore or change

    How can I find my password for iTunes?  Forgot it and can't see how to restore or change it.  It is not the same as the apple id password - or so my iPhone iTunes says - Help

    I don't want to reset my apple ID password. I know it's right. It doesn't work on Itunes to restore my phone. All the passwords I know are not working. I want to know why.

  • I have forgotten my Password to be able to connect between my desktop Mac and Mac Book on my home network. How can I recover the password or change it?

    I have forgotten my Password to be able to connect between my desktop Mac and Mac Book on my home network. How can I recover the password or change it?

    The password used to log in to a user account remotely is the same as you would use to log into it locally. You can also use your Apple ID, so try that.
    To change your login password read OS X Mavericks: Reset a login password
    also OS X Mavericks: If you forget your login password

  • I have just acquired an iMac desktop. I want to sign on to my airport wireless network, but cannot remember the password. How can I access the password or reset it. I already use a MacBook Pro and an iPad on the network.

    I have just acquired an iMac desktop (about 4 years old). I want to connect to my Apple airport wireless network, but cannot remember the password. How can I access the password or, if necessary, reset it. I already use a MacBook Pro and an iPad on the network and don't want to jeopardize what already works well. I am not all that computer literate.

    How can I access the password or, if necessary, reset it.
    Read the user manual that came w/your Airport router or you can cross-post in one of the  AirPort Forums for instructions. 

  • How can I retrieve my password when the retrials email was not recoverable? I also can't use or pass the othere menace of recovery? Not being able to pass or answer the security questions?

    How can I retrieve my password when the retrials email was not recoverable either? I also can't use or pass the othere means of recovery? Not being able to pass or answer the security questions?
    I created a new ID but never being able to update the iTunes that were purchased/saved using the old id?
    I can't also delete.

    Hi Kazmania89,
    Welcome to the Support Communities!
    If you require additional assistance with this, click on the link below for guidance:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Once you are able to gain access to the old Apple ID, this article may be helpful:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    I have purchased music, apps, or books with multiple Apple IDs. How can I get all of this content onto my iOS device?

    First, you need to copy all of your purchased content so it is on the same Mac or PC with iTunes. This computer should be the one you sync your device with. For more information on how to move your content, see these articles:
    Mac:  iTunes for Mac: How to copy purchases between computers
    PC:  iTunes for Windows: How to copy purchases between computers
    Next, authorize your computer to play content with each Apple ID in iTunes. Once your computer is authorized for all your content, it can be synced to your iPhone, iPad, or iPod touch. 
    Cheers,
    - Judy

Maybe you are looking for

  • How can i back up my apple iphone 3g its telling me to unlock the screene but i cant the touch screen doesnt work

    i have a apple iphone 3g and my touch screen doesnt work i tried to back it up to my itunes but its telling me unlock it i need my contacts off it like asap help

  • PC vs Mac

    I have Photoshop Elements/Premiere Elements installed on my pc.  12-2005 version.for Windows XP. I also use a Mac & am planning on getting a new MacBook Pro.  I backup my photos on external hard drive.  1-  Will these photos be compatible with both P

  • Plug-in support for keynote

    I would like to make Plug-in for keynote .Can it be possible to make third party plug-ins for keynote like Safari supports Flash, Shockwave, and QuickTime plug-ins and iTunes supports visualizer plugins and device plugins.

  • Non iphone mobiles HELP!!

    I am about to change my mobile and have had nothing but trouble trying to get my blackberry to talk to my mac, I am stuck with vodafone as the company pays the bill, can anyone suggest which phone would be more compatible, it only needs be fairly bas

  • HT201364 Can't download OS X Maverick due to space!

    I am trying to download OS X Maverick and I have 5.25 GB available, but the message I am receiving is "You need 4.95 GB available space on your startup disk" and it will not allow me to download. Any help out there regarding making more space or some