CRYPT(3) replacement

Hello,
I'm writing a script to change passwords on different servers: windows, red hat, Solaris, ...
For windows it is easy (thank you PowerShell) but for unix/linux it is harder.
I'm looking to find a replacement for the command CRYPT(3) from linux
manual page 
can anyone help me with this?
Thank you in advance

Here is how we do the same thing on a WIndows machine.
$ss|ConvertFrom-SecureString
$ss=ConvertTo-SecureString -String MyTextPassword -AsPlainText -Force
The encrypted string is NOT portable.  It is only usable on the box it was created on.
The Crypto API can encrypt in most portable formats but portable formats generally require a certificate.
Your SSL connection uses a remote cert on the Unix box to encrypt the connection.  The same is true for HTTPS.  That is because they require a shared key and the target of the connection controls the encryption which eliminates the need for the
client to have a copy of the certificate or the passkey.  TH client uses the host cert and a shared temporary key sent over the secured channel.
password encryption is not a shared key.  We create a secure channel first then send a plain text password.  In Windows on a  domain the password is actually sent encrypted over a secure channel and blindly applied to the password manager. 
If the password validates a token is allocated and there is no more password with further authentication.
I am not up to date on how Linux currently handles this.  It used to just keep the passwords in a file that was protected and later encrypted.  Most corporate Unix implementations now use Kerberos which is what Windows uses in a domain.
¯\_(ツ)_/¯

Similar Messages

  • [SOLVED]Grub fails to open dm-crypt+LUKS volume on boot(Waiting 10s..)

    I know there are quite a few solved posts like these but it's usually because of "mkinitcpio -p linux" not being regenerated.
    My problem is after boot Grub says:
    running hook [udev]
    running hook [encrypt]
    Waiting 10 seconds for device /dev/disk/by-uuid/d1d0825c-25d1-4cbe-811f-725d9ef8d034>...
    ERROR: device 'UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034' not found. Skipping fsck.
    ERROR: Unable to find root device 'UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034'.
    Here are all the files that I think would be needed for this:
    /etc/fstab
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    #/dev/mapper/cryptroot / ext4 rw,realtime,data=ordered 0 1
    UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 / ext4 rw,relatime,data=ordered 0 1
    #/dev/sda5 /boot ext4 rw,relatime,data=ordered 0 2
    UUID=d04b37b1-4dfb-451c-b582-b9d95ca8fe22 /boot ext4 rw,relatime,data=ordered 0 2
    lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 298.1G 0 disk
    ├─sda1 8:1 0 100M 0 part
    ├─sda2 8:2 0 97.6G 0 part
    ├─sda3 8:3 0 1K 0 part
    ├─sda5 8:5 0 300M 0 part
    ├─sda6 8:6 0 50G 0 part
    │ └─cryptroot 254:1 0 50G 0 crypt /
    ├─sda7 8:7 0 1G 0 part
    └─sda8 8:8 0 149.1G 0 part
    sdb 8:16 1 29.3G 0 disk
    ├─sdb1 8:17 1 558M 0 part
    └─sdb2 8:18 1 31M 0 part
    sdc 8:32 1 15G 0 disk
    └─sdc1 8:33 1 15G 0 part /mnt/usb
    sr0 11:0 1 1024M 0 rom
    loop0 7:0 0 240.9M 1 loop
    loop1 7:1 0 1.5G 1 loop
    └─arch_root-image 254:0 0 1.5G 0 dm /etc/resolv.conf
    loop2 7:2 0 1.5G 0 loop
    └─arch_root-image 254:0 0 1.5G 0 dm /etc/resolv.conf
    blkid
    /dev/sda1: LABEL="System Reserved" UUID="3A481C2D481BE703" TYPE="ntfs" PARTUUID="850a6169-01"
    /dev/sda2: UUID="EE3443C234438D11" TYPE="ntfs" PARTUUID="850a6169-02"
    /dev/sda5: UUID="d04b37b1-4dfb-451c-b582-b9d95ca8fe22" TYPE="ext4" PARTUUID="850a6169-05"
    /dev/sda6: UUID="691c218e-658f-47ff-8296-6b266b2c06c9" TYPE="crypto_LUKS" PARTUUID="850a6169-06"
    /dev/sdb1: UUID="2014-07-03-18-41-56-00" LABEL="ARCH_201407" TYPE="iso9660" PTUUID="6039e1c4" PTTYPE="dos" PARTUUID="6039e1c4-01"
    /dev/sdb2: SEC_TYPE="msdos" LABEL="ARCHISO_EFI" UUID="3B47-A69A" TYPE="vfat" PARTUUID="6039e1c4-02"
    /dev/loop0: TYPE="squashfs"
    /dev/loop1: UUID="5857fcdc-02d9-4d16-aeb5-00d786995ffc" TYPE="ext4"
    /dev/loop2: UUID="5857fcdc-02d9-4d16-aeb5-00d786995ffc" TYPE="ext4"
    /dev/mapper/arch_root-image: UUID="5857fcdc-02d9-4d16-aeb5-00d786995ffc" TYPE="ext4"
    /dev/mapper/cryptroot: UUID="d1d0825c-25d1-4cbe-811f-725d9ef8d034" TYPE="ext4"
    /dev/sdc1: UUID="86D3-3C7E" TYPE="vfat" PARTUUID="c3072e18-01"
    /dev/sda7: PARTUUID="850a6169-07"
    /dev/sda8: PARTUUID="850a6169-08"
    /etc/default/grub
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet"
    GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda6:cryptroot"
    # Preload both GPT and MBR modules so that they are not missed
    GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    # Uncomment to enable Hidden Menu, and optionally hide the timeout count
    #GRUB_HIDDEN_TIMEOUT=5
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    # Uncomment to use basic console
    GRUB_TERMINAL_INPUT=console
    # Uncomment to disable graphical terminal
    #GRUB_TERMINAL_OUTPUT=console
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=auto
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    #GRUB_DISABLE_LINUX_UUID=true
    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY=true
    # Uncomment and set to the desired menu colors. Used by normal and wallpaper
    # modes only. Entries specified as foreground/background.
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    # Uncomment one of them for the gfx desired, a image background or a gfxtheme
    #GRUB_BACKGROUND="/path/to/wallpaper"
    #GRUB_THEME="/path/to/gfxtheme"
    # Uncomment to get a beep at GRUB start
    #GRUB_INIT_TUNE="480 440 1"
    #GRUB_SAVEDEFAULT="true"
    /boot/grub/grub.cfg
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    if [ "${next_entry}" ] ; then
    set default="${next_entry}"
    set next_entry=
    save_env next_entry
    set boot_once=true
    else
    set default="0"
    fi
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if loadfont unicode ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
    set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d1d0825c-25d1-4cbe-811f-725d9ef8d034' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha1
    insmod ext2
    set root='cryptouuid/691c218e658f47ff82966b266b2c06c9'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint='cryptouuid/691c218e658f47ff82966b266b2c06c9' d1d0825c-25d1-4cbe-811f-725d9ef8d034
    else
    search --no-floppy --fs-uuid --set=root d1d0825c-25d1-4cbe-811f-725d9ef8d034
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 rw cryptdevice=/dev/sda6:cryptroot quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-d1d0825c-25d1-4cbe-811f-725d9ef8d034' {
    menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-d1d0825c-25d1-4cbe-811f-725d9ef8d034' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha1
    insmod ext2
    set root='cryptouuid/691c218e658f47ff82966b266b2c06c9'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint='cryptouuid/691c218e658f47ff82966b266b2c06c9' d1d0825c-25d1-4cbe-811f-725d9ef8d034
    else
    search --no-floppy --fs-uuid --set=root d1d0825c-25d1-4cbe-811f-725d9ef8d034
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 rw cryptdevice=/dev/sda6:cryptroot quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-d1d0825c-25d1-4cbe-811f-725d9ef8d034' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha1
    insmod ext2
    set root='cryptouuid/691c218e658f47ff82966b266b2c06c9'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint='cryptouuid/691c218e658f47ff82966b266b2c06c9' d1d0825c-25d1-4cbe-811f-725d9ef8d034
    else
    search --no-floppy --fs-uuid --set=root d1d0825c-25d1-4cbe-811f-725d9ef8d034
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 rw cryptdevice=/dev/sda6:cryptroot quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux-fallback.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    ### BEGIN /etc/grub.d/60_memtest86+ ###
    ### END /etc/grub.d/60_memtest86+ ###
    Things I tried:
    Replace this line in grub.cfg with
    linux /boot/vmlinuz-linux root=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 rw cryptdevice=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034:cryptroot quiet
    Do mkinitcpio -p linux but the hook ecrypt is there, so I assume it's a grub issue.
    In
    /etc/default/grub
    replace GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda6:cryptroot" with actual UUID, etc.
    Grub config was made with
    grub-mkconfig -o /boot/grub/grub.cfg
    Grub was installed with
    grub-install --target=i386-pc --recheck /dev/sda
    Last edited by shape (2014-07-21 15:23:05)

    Welcome to the forum :-)
    Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
    When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode
    like this
    It makes the code more readable and - in case of longer listings - more convenient to scroll through.

  • HELP WITH BLOB CRYPTING

    HI Guys,
    i can't get the dbms_crypto procedure to work correctly:
    i've a table where i upload data via apex, all stored in a blob table of mine and the download proc as well to download file: i can't crypt the blob file.
    my custom proc is triggered:
    As you can see only update, such it doesn't crypt nothing ;-(
    I've copied only the encrypt proc such the problem has to be similare for the other proc as well.
    Probably the error is using the same blob as source as destination, however i can't fix this, and i think is possible to 'work' on the same blob.
    Note that only for test purpose i have copied the blob from another col of the same table (BLOB_CONTENT_NON_CRYPT), so my col has data in it.
    create or replace TRIGGER BI_BNFOWNFL BEFORE INSERT ON BNFOWNFL
    FOR EACH ROW
    DECLARE
    B BLOB;
    begin
    IF INSERTING THEN
    select "BNFOWNFL_SEQ".nextval into :NEW.ID from dual;
    END IF;
    IF UPDATING THEN
    B:=:OLD.BLOB_CRYPTED;
    P_ENCRYPT.encrypt_ssnBLOB(B);
    :NEW.BLOB_CRYPTED:=B;
    NULL;
    END IF;
    end;
    MY PROC IS AS FOLLOWS:
    PROCEDURE encrypt_ssnBLOB( p_ssn IN OUT NOCOPY BLOB);
    PROCEDURE decrypt_ssnBLOB( p_ssn IN OUT NOCOPY BLOB);
    G_KEY RAW(32) := UTL_I18N.STRING_TO_RAW( 'ZORRO', 'AL32UTF8' );
    PROCEDURE encrypt_ssnBLOB( p_ssn IN OUT NOCOPY BLOB )
    IS
    BEGIN
    dbms_crypto.encrypt
    ( dst => p_ssn,
    src => p_ssn,
    typ => DBMS_CRYPTO.DES_CBC_PKCS5,
    key => G_KEY );
    END encrypt_ssnBLOB;
    Thanx a lot for help

    Hi, Marcello, glad to hear - you got the process working, but after i reread your post ( if i understood you correctly ) - i have some doubts on your procedure - could you get the original documents by decrypting your encrypted documents successfully ?
    The main problem with it in my opinion - you can't pass to the encrypt procedure the same lob locator for source and for destination. Docs says - the output lob will be overwritten and it will be indeed (http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_crypto.htm#sthref1552).
    To demonstrate this i set up some examples - in the first part i encrypt using the same lob locator passed to the encrypt procedure, in the second i created a trigger which works properly ( i.e. the encrypted part can be decrypted again, the encryption part of trigger body can/should be placed in the procedure of course). Another issue - with assignment like A_LOB := :NEW.LOB_COLUMN within the trigge - on this way your new variable points to the same lob as :NEW.LOB_COLUMN and therefor can not be used as destination lob parameter for the encrypt procedure - that is why i used in my example DBMS_LOB.COPY procedure.
    scott@ORA102> DECLARE
    2 l_blob_1 BLOB;
    3 l_blob_2 BLOB;
    4 G_KEY RAW(32) := UTL_I18N.STRING_TO_RAW( lpad('ZORRO',8), 'AL32UTF8' );
    5 BEGIN
    6 dbms_lob.createtemporary(l_blob_1,TRUE);
    7 dbms_lob.createtemporary(l_blob_2,TRUE);
    8 l_blob_1 := UTL_I18N.STRING_TO_RAW('Hello, world!','AL32UTF8');
    9 l_blob_2 := UTL_I18N.STRING_TO_RAW('God save the queen','AL32UTF8');
    10 dbms_output.put_line('1 LOB content before encryption: '||rawtohex(l_blob_1));
    11 dbms_output.put_line('2 LOB content before encryption: '||rawtohex(l_blob_2));
    12 dbms_crypto.encrypt( dst => l_blob_1,src => l_blob_1,typ => DBMS_CRYPTO.DES_CBC_PKCS5,key => G_KEY );
    13 dbms_crypto.encrypt( dst => l_blob_2,src => l_blob_2,typ => DBMS_CRYPTO.DES_CBC_PKCS5,key => G_KEY );
    14 dbms_output.put_line('1 LOB content after encryption: '||rawtohex(l_blob_1));
    15 dbms_output.put_line('2 LOB content after encryption: '||rawtohex(l_blob_2));
    16 -- now try to decrypt the "encrypted" blob - it seems, we got the junk
    17 -- to accomplish it - l_blob_1 should be properly encrypted form of l_blob_2:
    18 dbms_crypto.decrypt( dst => l_blob_1,src => l_blob_2,typ => DBMS_CRYPTO.DES_CBC_PKCS5,key => G_KEY );
    19 dbms_output.put_line('2 LOB content after PROPER decryption: '||rawtohex(l_blob_1));
    20 END;
    21 /
    1 LOB content before encryption: 48656C6C6F2C20776F726C6421
    2 LOB content before encryption: 476F6420736176652074686520717565656E
    1 LOB content after encryption: 501A81E5BE464DB3
    2 LOB content after encryption: 501A81E5BE464DB3
    2 LOB content after PROPER decryption:
    PL/SQL procedure successfully completed.
    scott@ORA102>
    scott@ORA102> DROP TABLE test_encryption;
    Table dropped.
    scott@ORA102> CREATE TABLE test_encryption(ID NUMBER,plain_blob BLOB,encrypted_blob BLOB);
    Table created.
    scott@ORA102> INSERT INTO test_encryption(ID,plain_blob,encrypted_blob)
    2 VALUES(1,rawtohex('Hello World!'),NULL);
    1 row created.
    scott@ORA102> CREATE OR REPLACE TRIGGER trg_test_encryption
    2 BEFORE UPDATE ON test_encryption
    3 FOR EACH ROW
    4 DECLARE
    5 G_KEY RAW(32) := UTL_I18N.STRING_TO_RAW( lpad('ZORRO',8), 'AL32UTF8' );
    6 l_blob BLOB;
    7 BEGIN
    8 dbms_lob.createtemporary(:NEW.encrypted_blob,TRUE);
    9 dbms_lob.open(:NEW.encrypted_blob,dbms_lob.lob_readwrite);
    10 dbms_lob.open(:NEW.plain_blob,dbms_lob.lob_readonly);
    11 dbms_lob.copy(:NEW.encrypted_blob,:NEW.plain_blob,dbms_lob.getlength(:NEW.plain_blob),1,1);
    12 dbms_crypto.encrypt( dst => :NEW.encrypted_blob,src =>:NEW.plain_blob ,typ => DBMS_CRYPTO.DES_CBC_PKCS5,key => G_KEY );
    13 END;
    14 /
    Trigger created.
    scott@ORA102> UPDATE test_encryption SET ID=ID;
    1 row updated.
    scott@ORA102> COMMIT;
    Commit complete.
    scott@ORA102> col plain for a20
    scott@ORA102> col enc for a20
    scott@ORA102>
    scott@ORA102> SELECT
    2 dbms_lob.getlength(plain_blob) len_plain,
    3 dbms_lob.substr(plain_blob,dbms_lob.getlength(plain_blob),1) plain,
    4 dbms_lob.getlength(encrypted_blob) len_enc,
    5 dbms_lob.substr(encrypted_blob,dbms_lob.getlength(encrypted_blob),1) enc
    6 FROM test_encryption;
    LEN_PLAIN PLAIN LEN_ENC ENC
    12 48656C6C6F20576F726C 16 6784483CC01870D1BE58
    6421 FB64909783DB
    scott@ORA102>
    scott@ORA102> -- now try to decrypt the encrypted value
    scott@ORA102> DECLARE
    2 G_KEY RAW(32) := UTL_I18N.STRING_TO_RAW( lpad('ZORRO',8), 'AL32UTF8' );
    3 l_src BLOB;
    4 l_tgt BLOB;
    5 BEGIN
    6 dbms_lob.createtemporary(l_tgt,TRUE);
    7 SELECT encrypted_blob INTO l_src FROM test_encryption FOR UPDATE;
    8 dbms_lob.open(l_tgt,dbms_lob.lob_readwrite);
    9 dbms_lob.open(l_src,dbms_lob.lob_readonly);
    10 dbms_crypto.decrypt( dst => l_tgt,src => l_src ,typ => DBMS_CRYPTO.DES_CBC_PKCS5,key => G_KEY );
    11 dbms_output.put_line(utl_raw.cast_to_varchar2(l_tgt));
    12 ROLLBACK;
    13 END;
    14 /
    Hello World!
    PL/SQL procedure successfully completed.
    Best regards
    Maxim

  • External USB encryption key (dm-crypt and luks) - help!

    Hi, I've been following the 'System Encryption with LUKS for dm-crypt' wiki during my new laptop install - but am stuck on one bit.
    On this line:
    echo 'KERNEL=="sd*", ATTRS{serial}=="$SERIAL", SYMLINK+="$SYMLINK%n"' > /etc/udev/rules.d/8-usbstick.rules
    What do I put in for the $SYMLINK%n ? is this a link to /dev/sd .. something? Or is it a name for the device?
    Many thanks in advance for any help!
    Last edited by TornadoTDi (2008-08-27 13:04:10)

    Thanks for your reply. The wiki page does say:
    "Replace $SYMLINK and $SERIAL with their respective values. %n will expand to the partition (just like sda is subdivided into sda1, sda2, ...).".
    Now, the $SERIAL part can be obtained, but it's not clear what form the $SYMLINK variable is in...

  • CRYPTING BLOB: DO I MISS SOMETHING

    Hi to all,
    would be nice to have an help regard my code for crypting:
    I does something but when i've decrypt all is not readable at all.
    What's wrong with my code for CRYPTING BLOB??
    This is first time i'm trying to crypt something.
    As you see the function are copied from another post: i made the procedure and the error should be in procedure for sure.
    create or replace PACKAGE BODY p_encrypt
    AS
    --DO NOT FORGET TO WRAP THIS BEFORE LOADING INTO DATABASE
    -- TO WRAP THIS
    G_KEY RAW(32) := UTL_I18N.STRING_TO_RAW( 'GOODNIGHTALL', 'AL32UTF8' );
    FUNCTION encrypt_ssn( p_ssn IN VARCHAR2 ) RETURN RAW
    IS
    l_ssn RAW(32) := UTL_I18N.STRING_TO_RAW( p_ssn, 'AL32UTF8' );
    l_encrypted RAW(32);
    BEGIN
    NULL;
    l_encrypted := dbms_crypto.encrypt
    ( src => l_ssn,
    typ => DBMS_CRYPTO.DES_CBC_PKCS5,
    key => G_KEY );
    RETURN l_encrypted;
    END encrypt_ssn;
    FUNCTION decrypt_ssn( p_ssn IN RAW ) RETURN VARCHAR2
    IS
    l_decrypted RAW(32);
    BEGIN
    l_decrypted := dbms_crypto.decrypt
    ( src => p_ssn,
    typ => DBMS_CRYPTO.DES_CBC_PKCS5,
    key => G_KEY );
    RETURN UTL_I18N.RAW_TO_CHAR( l_decrypted, 'AL32UTF8' );
    END decrypt_ssn;
    PROCEDURE encrypt_ssnBLOB( p_ssn IN OUT NOCOPY BLOB )
    AS
    --l_ssn BLOB;
    --l_encrypted BLOB;
    BEGIN
    dbms_crypto.encrypt
    ( dst => p_ssn,
    src => p_ssn,
    typ => DBMS_CRYPTO.DES_CBC_PKCS5,
    key => G_KEY );
    --RETURN l_encrypted;
    END encrypt_ssnBLOB;
    PROCEDURE decrypt_ssnBLOB( p_ssn IN OUT NOCOPY BLOB)
    AS
    BEGIN
    dbms_crypto.decrypt
    ( dst => p_ssn,
    src => p_ssn,
    typ => DBMS_CRYPTO.DES_CBC_PKCS5,
    key => G_KEY );
    --RETURN l_decrypted;
    END decrypt_ssnBLOB;
    END p_encrypt;
    THANX A LOT

    See if the below metalink document helps:-
    SCRIPT: Encrypting Binary Large Objects (BLOBS) with dbms_obfuscation_toolkit.
    Doc ID: Note:244133.1
    How DBMS_OBFUSCATION_TOOLKIT Interoperates With DBMS_CRYPTO
    Doc ID: Note:338325.1

  • Error while creating a Characteristic Variable with Replacement Path

    Hi all,
        I am trying to create the Characteristic Variable ZVLOWDT (Low Date') with Replacement Path on characteristic ZSTARTDT (Start Date) and it gives the error 'Source to replace 'Low Date' is not defined.
       I have created a User Entry Variable VAR_DATE (Start Date) with interval like '01/01/2009 - 01/15/2009'  and  Customer Exit variable ZVCPDAY (does some calculation based on the input of VAR_DATE) on the same ZSTARTDT characteristic. I want to get the 01/01/2009 (lower range date of the selection) into this Characteristic Variable ZVLOWDT. We are in BI 7.0 and the following are it's properties:
    General Tab:
    Description: Low Date
    Technical Name: ZVLOWDT
    Type of Variable: Characteristic Value
    Processing by: Replacement Path
    Reference Characteristic: ZSTARTDT Start Date
    Details Tab:
    Variable Represents : Single value
    Variable is: Mandatory
    Variable is Ready for Input : unchecked
    Replacement Path Tab: Replacement Rule
    Replace Variable with : Variable
    Variable : VAR_DATE
    Replace with : KEY
    Why I am getting this error, PLEASE ?
    Thanks,
    Venkat.

    Hi Khaja,
       We could derive a Variable value from another Variable with out Customer Exit. There is a white paper.
    First have the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next create the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we could get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error  'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path, PLEASE ?
    Thanks,
    Venkat.

  • HT1423 I am adding more memory, should I replace the top two slots with the 4g memory modules, then place 2g memory modules on bottom slots. Does it even matter?

    I am adding more memory, should I replace the top two slots with the 4g memory modules, then place 2g memory modules on bottom slots. Does it even matter?

    I am adding more memory, should I replace the top two slots with the 4g memory modules, then place 2g memory modules on bottom slots. Does it even matter?

  • Time machine won't back up since I have restored from time machine following hard drive replacement.  I am being told there is not enough space, however the back up is less than the hard drive size

    We recently had the hard drive replaced on our Mac as part of Apple's replacement programme.  Prior to sending it off for repair we did a final Time Machine back up, which was completed successfully.  SInce getting the computer back we restored everything from the backup disk using Time Machine, which all worked fine, however now we are having problems with it completing regular backups.  We receive a message each time telling up that the backup disk doesn't have enough space on it.  It is telling us that it needs in the region of 370gb and only has around 30gb available.  The computer hard drive is in the region of 350gb and the hard drive is a 400gb one.  It is almost as if it is not recognising that the data already on the disk is the back up of this computer and is trying to complete a completely separate back up as opposed to just updating the backup already on the disk.
    Has anyone else got any experience of this and therefore could give me some hints on what to do.  I am reluctant to wipe the backup drive and start again, however I would prefer not to have to buy another hard drive if I can avoid it as this one is technically big enough
    I look forward to getting some responses

    Hi, I never use TM myself.
    Have you looked through Pondini's extensive TM help site?
    http://Pondini.org/TM/FAQ.html
    http://pondini.org/TM/Troubleshooting.html
    Can't imaging something not being covered there.
    PS. It's generally recommended a TM drive be at least twice the size of your main drive.

  • I had an Intel-iMac fried by lightening. UPS, surge protectors but it happened as I was reaching to unplug.  Cold now.  Could it just be the power supply?  Can I replace that myself?

    This is the full question since I couldn't get it all in the box. 
    I have some complex questions regarding an iMac, a Time-Machine backup, and iTunes on an iPod.
    I live about halfway up an extinct volcano about 12 miles north of San Jose Costa Rica.  Some months ago, we had a thunderstorm and as I reached to unplug my computers lightening struck about 50 meters from my house.  I had an iMac with a 3-Tb external backup drive, a PC laptop and a laser printer on the same power strip.  There was a definite surge and the light brighten and then power was lost for a few minutes.
    When power was restored, the PC and the laser printer seemed to work fine but the iMac was cold.
    First questions:  Is is possible that the power supply was fried and not other essential parts?  Would it be worthwhile to replace the power supply?  Can I, with limited experience and tools do it or need I take it to a technician?  My concern is that if the hard-drive is good, there is personal information on it that I don't want to risk.
    Next question:  Do I need to replace the hard-drive before taking it for service?  How hard is that, can I do it? I have seen videos of the drive replacement on-line.
    Those are my iMac questions, now the questions about backup restoration.
    If there is a saving grace with this it is that the Time-Machine backup seems fine although I have only accessed the data through Finder.  I replaced the iMac with a Macbook Air with significantly less mass storage and I can't just move files to the Macbook.  My problem is that I have an iTunes library of some 10,000 songs on the backup and until recently on a 160 Gb iPod which was old and it crashed.  I have replaced the iPod but have not tried to restore the iTunes library to it because of my confusion about how to do that.  Can anyone tell me how I might do that or give me any insight into the process?
    Thanks for any help you can give.

    Is is possible that the power supply was fried and not other essential parts?  Would it be worthwhile to replace the power supply?  Can I, with limited experience and tools do it or need I take it to a technician?  My concern is that if the hard-drive is good, there is personal information on it that I don't want to risk
    Quite possible, but working on iMacs is not easy, & PSU might be prohibitive.
    Hopefully the Drive might have info on it, but even pulling that out can be a chore.
    If you don't know the model, find the Serial# & use it on one of these sites, but don't post the Serial# here...
    http://www.chipmunk.nl/klantenservice/applemodel.html
    http://www.appleserialnumberinfo.com/Desktop/index.php
    How to find the serial number of your Apple hardware product...
    http://support.apple.com/kb/HT1349
    I have replaced the iPod but have not tried to restore the iTunes library to it because of my confusion about how to do that.  Can anyone tell me how I might do that or give me any insight into the process?
    I'd get an external drive & restore the whole works to it, then boot from the External drive.

  • I am going to get a replacement for my iphone 5C, for data connection issues. Can I get an 5S, instead of antother 5C as a replacement?

    Hello, I have been having issues with my iPhone 5C for about a month now. I have unlimited everything, including data, & so randomly, starting about 2 weeks ago, my data basically does not work for any apps, besides like iMessage & Safari. So like if I have full LTE signal, I can try to open the Instagram app, and it will tell me "no internet connection", & it tells me that with ANY app, besides iMessage & Safari. Which is super frustrating, especially when I try to use like Maps or something & it jut does not load, & tells me that "there is not an internet connection", so I have to use apps & stuff only on wifi, in order for them to work. I went to the Sprint store, and had them try and update the data profile, reset data network, soft reset, etc (they basically did everything that I did), & they could NOT figure out what was wrong with my phone. So, they looked into my warranty information, and told me to take my phone to the Apple Store, and just get a replacement & that it would cost me only $50, since it is still covered under warranty. I am not up for an upgrade until April of 2016, & as far as I know, when it comes to replacements, Apple will either give me a new/refurbished iPhone 5C as a replacement. I don't really mind having to pay a little extra if I have to, in order to get a 5S , & I also don't care if the 5S would be either new or refurbished. So, my question is, could I maybe get a 5S as a replacement, instead of another 5C?
    Green iPhone 5C 8GB Sprint
    Message was edited by: jalyn_taylor
    Message was edited by: jalyn_taylor

    No.
    As provided,  you will get the exact same model, storage, color, etc

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Find and replace smart quotes with straight quotes?

    I understand I can turn off smart quotes so that I can type straight quotes, but I need to replace hundreds of curly smart quotes with straight quotes, is there a feature that will let me do this? I am using FM8.
    Thanx,
    Willian

    I am using FM9....so I don't know if the same shortcuts apply, but this is what I found out last week.
    Use the Find and Replace tool:
    With smart quotes turned off and the Num Lock key turned on:
    Alt0147 will give you beginning quotation marks
    Alt0148 will give you ending quotation marks
    In the Find box use ALT0147 or ALT0148 for the beginning or ending quotes. When you click in the box and type
    one of the shortcuts the correct quote will be shown in the box.
    In the replace box type the regular straight quotes on your keyboard.
    I was thrilled that it would work!...course you do have to do them separately and be careful not to replace the curly quotes
    that you want to leave in your document.
    Hope this helps using FM8....
    ls

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
    I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
    I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
    [email protected]

    This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
    !####.jpg!
    h2. "Name####"
    Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
    Back of the Painting In Progress </p> </body> </html>
    Warmest regards,
    Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/

  • How to get a macbook pro replacement under warranty?

    I bought my Macbook pro 6 months ago, and it's still under warranty right now. I used some laptops of SONY VAIO & Microsoft before, and I did not experience any problems with them in the first 2 years. This year, I decided to give Macbook pro a try because I have heard many compliments about this laptop from my friends and advertisements. When I opened the box and used it in the 1st time, I noticed that the button CAPS LOCK wasn't good, and I had to press it 2-3 times to make it work. It has happened for 6 months, until now. I felt a little bit disappointed, but I still use it because I am an easy customer. But recently, whenever I turn on the SLEEP MODE for my laptop and work with my laptop later on, my laptop often experiences the PAUSE or freezing. I don't know how to describe it, but there is a round circle with rainbow colors appear on the screen and pause everything/programs is running. My laptop has never been felt out or scratch. It's just 6 months since the day I purchased the laptop. I should not experience this trouble with my laptop because I think the Macpro is better than the SONY VAIO or other laptops. I feel like I was sold a refurbished Mac, and I am really disappointed. My friend told me to bring my Mac to be fixed in Apple store, but I don't want to continue using a fixed, refurbished Mac. Can I get a replacement? If I bought it in Bestbuy, could I got replacement in Apple Store or Bestbuy store?

    Can I get a replacement?
    No - see below
    whenever I turn on the SLEEP MODE for my laptop and work with my laptop later on, my laptop often experiences the PAUSE or freezing.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    but there is a round circle with rainbow colors appear on the screen and pause everything/programs is running.
    Troubleshoot the spinning beach ball
    When I opened the box and used it in the 1st time, I noticed that the button CAPS LOCK wasn't good, and I had to press it 2-3 times to make it work. It has happened for 6 months
    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • I have three different ipods with music on them and have had to replace our computer as it was in a fire. How can we combine the ipods into one ipod.

    We had to replace our computer due to a fire and lost many of the fiels which were on them. Many were music files for the ipods, we have thre. Also, do not have ID's and passwords to the iTunes store.
    How can we combine the information so that they are all in each one or at least compbine everything into one ipod?

    Just so you know the method suggested by Nelsonleee will cost your $29.95 USD, Yamipod is free.

Maybe you are looking for

  • The First Recurring Yearly Appointment (Anniversary) Disappears on z10 with Novell Data Synchronizer

    Device: z10 Carrier: Verizon Sync: Novell Data Synchronizer 1.Open Calendar, select month, select add 2. Type subject (My Aniversary), all day event to on 3. Select the Starts day and leave the ends day as default 4. Select Recurrence and set as year

  • Wireless keyboard stopped working on my iMac

    My wireless keyboard stopped working on my iMac. It shows that it is connected, but it won't respond.   It's not the batteries, and I tested keyboard on my iPad and it works fine on the iPad, so it is not the keyboard itself. I also tried to connect

  • Enforcing UNIQUE as well as CHECK constraint

    I have a database table in which I want the unique constraint enforced based on following condition: unique(parent_id, name) and parent_type != 'abcd' What is the best way to achieve this?. Thanks.

  • Exporting Flash for a DVD??? Please help?

    Hi there, I have a flash presentation thats for a supermarket TV screen. Its big in file size 9.6MB. When I go file/export/export movie to quicktime and use the animation settings the file plays but leaves trail lines behind, skips frames and looks C

  • Create Blackberry Application?

    Hi, I'd like to create an application that will run on a Blackberry Curve for example.  Can I do this with ColdFusion or do I need to use Adobe Air?  Does anyone have any resources on this? Thanks, -ws